# HG changeset patch # User andoma # Date 1226347320 0 # Node ID 4070139042c7e615aacf14e06621259f6b76307f # Parent cd756806be02f86592b9e1ef030de009e59d7f2f Fix memory leak in libgsm wrapper. Patch by Martin Storsj, martin at martin dot st diff -r cd756806be02 -r 4070139042c7 libgsm.c --- a/libgsm.c Sun Nov 09 12:00:47 2008 +0000 +++ b/libgsm.c Mon Nov 10 20:02:00 2008 +0000 @@ -89,6 +89,7 @@ } static av_cold int libgsm_close(AVCodecContext *avctx) { + av_freep(&avctx->coded_frame); gsm_destroy(avctx->priv_data); avctx->priv_data = NULL; return 0;