OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea46876
)
sapenc: Free AVStream->info on cleanup
author
Martin Storsjö
<martin@martin.st>
Thu, 3 Feb 2011 12:10:12 +0000
(12:10 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 4 Feb 2011 02:10:12 +0000
(
03:10
+0100)
This fixes yet another memory leak, present since SVN rev 25418.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit
1f56f5ed6d68f6492e213944e145e04e4d4dca13
)
libavformat/sapenc.c
patch
|
blob
|
history
diff --git
a/libavformat/sapenc.c
b/libavformat/sapenc.c
index
b14c511
..
088f7bd
100644
(file)
--- 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;