diff options
-rw-r--r-- | json_tokener.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/json_tokener.c b/json_tokener.c index 052c4b5..4a25645 100644 --- a/json_tokener.c +++ b/json_tokener.c @@ -164,8 +164,8 @@ struct json_tokener *json_tokener_new_ex(int depth) tok->pb = printbuf_new(); if (!tok->pb) { - free(tok); free(tok->stack); + free(tok); return NULL; } tok->max_depth = depth; |