aboutsummaryrefslogtreecommitdiffstats
path: root/tools/target_dem_fuzzer.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2020-11-14 17:19:04 -0300
committerJames Almer <jamrial@gmail.com>2020-11-20 12:43:51 -0300
commit40dfb4328d12f782190d4e38abb443e705315ccd (patch)
tree3b9393b1f74a35998ae787f89df944c289446a8e /tools/target_dem_fuzzer.c
parent8918a3dfa2e05ad386c9bab43cbea5ed3eb41a8a (diff)
downloadffmpeg-40dfb4328d12f782190d4e38abb443e705315ccd.tar.gz
tools/target_dem_fuzzer: use avio_context_free() to free the fuzzer's AVIOContext
The doxy for avio_alloc_context() states it must be used for this. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'tools/target_dem_fuzzer.c')
-rw-r--r--tools/target_dem_fuzzer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/target_dem_fuzzer.c b/tools/target_dem_fuzzer.c
index e4f41765d6..e5c41eea01 100644
--- a/tools/target_dem_fuzzer.c
+++ b/tools/target_dem_fuzzer.c
@@ -202,7 +202,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
}
end:
av_freep(&fuzzed_pb->buffer);
- av_freep(&fuzzed_pb);
+ avio_context_free(&fuzzed_pb);
avformat_close_input(&avfmt);
return 0;