[FFmpeg-devel] Small memleak when use AAC codec.
Fri Mar 11 13:12:13 CET 2011
On Sun, Nov 29, 2009 at 04:43:21PM +0300, Igor Makarov wrote:
> I found small memory leak when using aac. This leak is 32 bytes per loop without
> MEMALIGN_HACK, and 48 bytes with MEMALIGN.
> I tried to understand exactly where the memory is lost, and Founded that the functions
> av_cold void ff_psy_preprocess_end(struct FFPsyPreprocessContext *ctx) don't free context, so if add av_free(ctx); mem leak goes away.
> Patch attached.
> psymodel.c | 1 +
> 1 file changed, 1 insertion(+)
> 642a68f3c0331e3156650fdc02421f0e0b5a78d7 psymodel.c.patch
> +++ ./libavcodec/psymodel.c
> @@ -126,5 +126,6 @@
> for (i = 0; i < ctx->avctx->channels; i++)
> + av_free(ctx);
it appears this has been fixed
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the ffmpeg-devel