Skip to content

Commit 122c0c0

Browse files
committed
Insert a forgotten free
1 parent 6e7dc2b commit 122c0c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cjlib.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,5 +1133,7 @@ int cjlib_json_dump(const struct cjlib_json *restrict src)
11331133
if (NULL == json_content) return -1;
11341134

11351135
(void) fwrite((void *) json_content, strlen(json_content), 1, src->c_fp);
1136+
1137+
free((void *) json_content);
11361138
return 0;
11371139
}

0 commit comments

Comments
 (0)