summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2008-11-10 20:02:00 +0000
committerAndreas Öman <andreas@lonelycoder.com>2008-11-10 20:02:00 +0000
commit916ff02261f79e759d996c76670958276276bf2a (patch)
tree23c0e83e6d1468f93439e7f9119704e729585c44 /libavcodec
parent2ae1a9b2642d848d01475386f15967f00ae43503 (diff)
Fix memory leak in libgsm wrapper.
Patch by Martin Storsjö, martin at martin dot st Originally committed as revision 15798 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/libgsm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/libgsm.c b/libavcodec/libgsm.c
index 09578b403d..2d7df9b984 100644
--- 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;