From 916ff02261f79e759d996c76670958276276bf2a Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Mon, 10 Nov 2008 20:02:00 +0000 Subject: Fix memory leak in libgsm wrapper. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch by Martin Storsjö, martin at martin dot st Originally committed as revision 15798 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/libgsm.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec') 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; -- cgit v1.2.3