lavd/lavfi: fix two memleaks.
authorNicolas George <nicolas.george@normalesup.org>
Thu, 15 Dec 2011 18:51:38 +0000 (19:51 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Thu, 22 Dec 2011 09:09:51 +0000 (10:09 +0100)
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
libavdevice/lavfi.c

index b042782..4f91a4b 100644 (file)
@@ -71,6 +71,7 @@ av_cold static int lavfi_read_close(AVFormatContext *avctx)
 
     av_freep(&lavfi->sink_stream_map);
     av_freep(&lavfi->stream_sink_map);
+    av_freep(&lavfi->sinks);
     avfilter_graph_free(&lavfi->graph);
 
     return 0;
@@ -254,6 +255,7 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx,
     }
 
 end:
+    av_free(pix_fmts);
     avfilter_inout_free(&input_links);
     avfilter_inout_free(&output_links);
     if (ret < 0)