jq_fuzz_parse_extended.c: don't jv_free() twice

jv_dump() frees its argument.

I missed this problem before merging #2952, whoops! =)

fixup from eb3b5654bb
This commit is contained in:
Emanuele Torre
2023-11-28 20:41:09 +01:00
parent 4570c23720
commit 460a5c12b4
+3 -2
View File
@@ -25,9 +25,10 @@ int LLVMFuzzerTestOneInput(uint8_t *data, size_t size) {
jv res = jv_parse_custom_flags(null_terminated, fuzz_flags);
if (jv_is_valid(res)) {
jv_dump(res, dump_flags);
} else {
jv_free(res);
}
jv_free(res);
// Free the null-terminated string
free(null_terminated);