mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-19 09:02:26 +02:00
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>
This commit is contained in:
parent
8918a3dfa2
commit
40dfb4328d
@ -202,7 +202,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
|||||||
}
|
}
|
||||||
end:
|
end:
|
||||||
av_freep(&fuzzed_pb->buffer);
|
av_freep(&fuzzed_pb->buffer);
|
||||||
av_freep(&fuzzed_pb);
|
avio_context_free(&fuzzed_pb);
|
||||||
avformat_close_input(&avfmt);
|
avformat_close_input(&avfmt);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user