Skip to content

Commit e37fee2

Browse files
authored
Fix memory leak in obj->entries hash map (#16)
1 parent 904a33f commit e37fee2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

json.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,7 @@ void json_free_object(typed(json_object) * object) {
916916
if (entry != NULL) {
917917
free((void *)entry->key);
918918
json_free(&entry->element);
919+
free(entry);
919920
}
920921
}
921922

0 commit comments

Comments
 (0)