*: Fix memory leaks found by clang sanitizer

This commit is contained in:
ZyX
2016-02-06 22:19:23 +03:00
parent d4106f6df3
commit 7124329bd9
2 changed files with 6 additions and 5 deletions

View File

@@ -552,6 +552,7 @@ json_decode_string_cycle_start:
clear_tv(&obj);
goto json_decode_string_fail;
}
xfree(str);
POP(obj, true);
} else {
*str_end = NUL;