From 2cacf009046c14e4e8fba1069803094ee9abc74a Mon Sep 17 00:00:00 2001 From: Anthony Korzan Date: Mon, 31 Oct 2022 18:17:52 -0400 Subject: [PATCH] Fix memory leak in obj->entries hash map --- json.c | 1 + 1 file changed, 1 insertion(+) diff --git a/json.c b/json.c index d1d2178..8905fd2 100644 --- a/json.c +++ b/json.c @@ -916,6 +916,7 @@ void json_free_object(typed(json_object) * object) { if (entry != NULL) { free((void *)entry->key); json_free(&entry->element); + free(entry); } }