[FFmpeg-cvslog] sapenc: Free AVStream->info on cleanup
Martin Storsjö
git
Fri Feb 4 03:37:02 CET 2011
ffmpeg | branch: master | Martin Storsj? <martin at martin.st> | Thu Feb 3 12:10:12 2011 +0000| [a991b8dec654ad09a35494e0cabbbc157bb04dab] | committer: Michael Niedermayer
sapenc: Free AVStream->info on cleanup
This fixes yet another memory leak, present since SVN rev 25418.
Signed-off-by: Mans Rullgard <mans at mansr.com>
(cherry picked from commit 1f56f5ed6d68f6492e213944e145e04e4d4dca13)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a991b8dec654ad09a35494e0cabbbc157bb04dab
---
libavformat/sapenc.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libavformat/sapenc.c b/libavformat/sapenc.c
index b14c511..088f7bd 100644
--- a/libavformat/sapenc.c
+++ b/libavformat/sapenc.c
@@ -48,6 +48,7 @@ static int sap_write_close(AVFormatContext *s)
url_fclose(rtpctx->pb);
av_metadata_free(&rtpctx->streams[0]->metadata);
av_metadata_free(&rtpctx->metadata);
+ av_free(rtpctx->streams[0]->info);
av_free(rtpctx->streams[0]);
av_free(rtpctx);
s->streams[i]->priv_data = NULL;
More information about the ffmpeg-cvslog
mailing list