[FFmpeg-devel,3/4] tools/target_dec_fuzzer: Remove redundant av_free()

Submitted by Michael Niedermayer on July 11, 2019, 9:49 p.m.

Details

Message ID 20190711214940.13431-3-michael@niedermayer.cc
State Accepted
Commit 9b5249a441a3581929329e8af1b63e20dc98c3d2
Headers show

Commit Message

Michael Niedermayer July 11, 2019, 9:49 p.m.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 tools/target_dec_fuzzer.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Michael Niedermayer July 13, 2019, 10:03 a.m.
On Thu, Jul 11, 2019 at 11:49:39PM +0200, Michael Niedermayer wrote:
> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
> ---
>  tools/target_dec_fuzzer.c | 2 --
>  1 file changed, 2 deletions(-)

will apply

[...]

Patch hide | download patch | download mbox

diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c
index a2ef94139b..07ad59c63e 100644
--- a/tools/target_dec_fuzzer.c
+++ b/tools/target_dec_fuzzer.c
@@ -281,9 +281,7 @@  int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
 
     av_frame_free(&frame);
     avcodec_free_context(&ctx);
-    av_freep(&ctx);
     avcodec_free_context(&parser_avctx);
-    av_freep(&parser_avctx);
     av_parser_close(parser);
     FDBDesroy(&buffer);
     return 0;