Skip to content
Myr

jq_fuzz_execute: fix memory leak

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

authored by DavidKorczynski · committed by GitHub · parent bfb7fd5 · Browse files · 1 file+4 added−2 removed
This commit

State

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

Trailers

  • Signed-off-by: David Korczynski <david@adalogics.com>

Diff stats

1 file+4 added−2 removed

  • tests:+4 added−2 removed

1 file+4 added−2 removed

modified:tests/jq_fuzz_execute.cpp+4 added-2 removed
25 unmodified lines
26 jv actual = jq_next(jq);27 jv_free(actual);28 }29 jv_free(next);30 } else {31 // Only free if input is invalid as otherwise jq_teardown32 // frees it.33 jv_free(input);34 }3132 // Do not free "input" as this is handled by jq_teardown.35 }36 }37 jq_teardown(&jq);38
2 unmodified lines