[FFmpeg-cvslog] r15798 - trunk/libavcodec/libgsm.c

andoma subversion
Mon Nov 10 21:02:00 CET 2008


Author: andoma
Date: Mon Nov 10 21:02:00 2008
New Revision: 15798

Log:
Fix memory leak in libgsm wrapper.

Patch by Martin Storsj?, martin at martin dot st



Modified:
   trunk/libavcodec/libgsm.c

Modified: trunk/libavcodec/libgsm.c
==============================================================================
--- trunk/libavcodec/libgsm.c	(original)
+++ trunk/libavcodec/libgsm.c	Mon Nov 10 21:02:00 2008
@@ -89,6 +89,7 @@ static av_cold int libgsm_init(AVCodecCo
 }
 
 static av_cold int libgsm_close(AVCodecContext *avctx) {
+    av_freep(&avctx->coded_frame);
     gsm_destroy(avctx->priv_data);
     avctx->priv_data = NULL;
     return 0;




More information about the ffmpeg-cvslog mailing list