[FFmpeg-devel] [PATCH 2/3] lavf/tee: fix leak of select option.

Nicolas George george at nsup.org
Mon Oct 21 17:08:47 CEST 2013


Signed-off-by: Nicolas George <george at nsup.org>
---
 libavformat/tee.c | 1 +
 1 file changed, 1 insertion(+)


Probably not spotted by Coverity, but caught by Valgrind at the same time as
#1.


diff --git a/libavformat/tee.c b/libavformat/tee.c
index 171a827..78348e3 100644
--- a/libavformat/tee.c
+++ b/libavformat/tee.c
@@ -280,6 +280,7 @@ static int open_slave(AVFormatContext *avf, char *slave, TeeSlave *tee_slave)
 
 end:
     av_free(format);
+    av_free(select);
     av_dict_free(&options);
     return ret;
 }
-- 
1.8.4.rc3



More information about the ffmpeg-devel mailing list