summaryrefslogtreecommitdiff
path: root/libavformat/sapenc.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-02-03 12:10:12 +0000
committerMans Rullgard <mans@mansr.com>2011-02-03 13:21:36 +0000
commit1f56f5ed6d68f6492e213944e145e04e4d4dca13 (patch)
treecedf1237fe5b3d0e7a52638689c7c5d65f38195f /libavformat/sapenc.c
parent9ad4c65f6fa7ff6d3fb7d5ea02908bbd6adc583f (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>
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;