[FFmpeg-cvslog] avcodec/aacpsy: Clear the correct pointer

Michael Niedermayer git at videolan.org
Mon Jun 1 01:41:05 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jun  1 01:32:24 2015 +0200| [e7a65142b972fc1f7fd020d89c8f82dc3cfbc553] | committer: Michael Niedermayer

avcodec/aacpsy: Clear the correct pointer

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e7a65142b972fc1f7fd020d89c8f82dc3cfbc553
---

 libavcodec/aacpsy.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/aacpsy.c b/libavcodec/aacpsy.c
index 0d05937..3a66159 100644
--- a/libavcodec/aacpsy.c
+++ b/libavcodec/aacpsy.c
@@ -358,7 +358,7 @@ static av_cold int psy_3gpp_init(FFPsyContext *ctx) {
 
     pctx->ch = av_mallocz_array(ctx->avctx->channels, sizeof(AacPsyChannel));
     if (!pctx->ch) {
-        av_freep(&pctx);
+        av_freep(&ctx->model_priv_data);
         return AVERROR(ENOMEM);
     }
 



More information about the ffmpeg-cvslog mailing list