projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ae1a9b
)
Fix memory leak in libgsm wrapper.
author
Martin Storsjö
<martin@martin.st>
Mon, 10 Nov 2008 20:02:00 +0000
(20:02 +0000)
committer
Andreas Öman
<andreas@lonelycoder.com>
Mon, 10 Nov 2008 20:02:00 +0000
(20:02 +0000)
Patch by Martin Storsjö, martin at martin dot st
Originally committed as revision 15798 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/libgsm.c
patch
|
blob
|
history
diff --git
a/libavcodec/libgsm.c
b/libavcodec/libgsm.c
index
09578b4
..
2d7df9b
100644
(file)
--- a/
libavcodec/libgsm.c
+++ b/
libavcodec/libgsm.c
@@
-89,6
+89,7
@@
static av_cold int libgsm_init(AVCodecContext *avctx) {
}
static av_cold int libgsm_close(AVCodecContext *avctx) {
+ av_freep(&avctx->coded_frame);
gsm_destroy(avctx->priv_data);
avctx->priv_data = NULL;
return 0;