Clean up after errors and fix related bugs:

It was freeing the wrong object when there was an error
attaching an object to its parent!

Don't crash when printing null (partially read) hash values.
This commit is contained in:
Eric Fischer
2014-02-08 09:31:49 -08:00
parent 5e6fa6f8dc
commit b72bb6f1f4
3 changed files with 15 additions and 4 deletions
+1
View File
@@ -33,6 +33,7 @@ typedef struct json_pull {
void *source;
json_object *container;
json_object *root;
} json_pull;
json_pull *json_begin_file(FILE *f);