Skip to content

Commit 7682ef6

Browse files
committed
typo fix
1 parent 0836119 commit 7682ef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/_libs/src/ujson/lib/ultrajsonenc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,7 @@ char *JSON_EncodeObject(JSOBJ obj, JSONObjectEncoder *enc, char *_buffer,
11821182
}
11831183

11841184
if (strcmp(locale, "C")) {
1185-
int len = malloc(strlen(locale) + 1);
1185+
int len = strlen(locale) + 1;
11861186
char *origLocale = malloc(len);
11871187
if (origLocale == NULL) {
11881188
SetError(NULL, enc, "Could not reserve memory block");

0 commit comments

Comments
 (0)