Skip to content
Myr

jq_fuzz_parse_extended.c: don't jv_free() twice

Before adoption: this commit came in with the history the project adopted, so no landing records it.

jv_dump() frees its argument. I missed this problem before merging #2952, whoops! =) fixup from eb3b5654bbd285fa70bab8ca71f2284354adf625

authored by Emanuele Torre · committed by Emanuele Torre · parent 4570c23 · Browse files · 1 file+3 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−2 removed

  • tests:+3 added−2 removed

1 file+3 added−2 removed

modified:tests/jq_fuzz_parse_extended.c+3 added-2 removed
23 unmodified lines
24 // Fuzzer entrypoint25 jv res = jv_parse_custom_flags(null_terminated, fuzz_flags);26 if (jv_is_valid(res)) {27 jv_dump(res, dump_flags);28 } else {29 jv_free(res);30 }29 jv_free(res);30 3132 // Free the null-terminated string33 free(null_terminated);3435 return 0;
1 unmodified line