json parser BUGFIX memory leak
diff --git a/src/parser_json.c b/src/parser_json.c
index 20ac4d6..c1c84f7 100644
--- a/src/parser_json.c
+++ b/src/parser_json.c
@@ -792,7 +792,7 @@
         break;
     default:
         LOGINT;
-        return 0;
+        goto error;
     }
     result->parent = *parent;
     if (*parent && !(*parent)->child) {