Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-02-03 15:10:12 +0300
committerMichael Niedermayer <michaelni@gmx.at>2011-02-04 05:10:12 +0300
commita991b8dec654ad09a35494e0cabbbc157bb04dab (patch)
tree5b0f3e9ff4b1702b1ff327373b0036c7ad4fb8a2 /libavformat/sapenc.c
parentea46876301e32ee6e55e05a1289cc226e434bdd0 (diff)
sapenc: Free AVStream->info on cleanup
This fixes yet another memory leak, present since SVN rev 25418. Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 1f56f5ed6d68f6492e213944e145e04e4d4dca13)
Diffstat (limited to 'libavformat/sapenc.c')
-rw-r--r--libavformat/sapenc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/sapenc.c b/libavformat/sapenc.c
index b14c511cea..088f7bda01 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;