summaryrefslogtreecommitdiffstats
path: root/libavcodec/aacpsy.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-01 01:32:24 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-01 01:32:24 +0200
commite7a65142b972fc1f7fd020d89c8f82dc3cfbc553 (patch)
tree8b256f6bfa78a5934a64ecab91273003c10d2ef6 /libavcodec/aacpsy.c
parent63fdedc79470de309693d7ce7fe75cfcf0a268d8 (diff)
downloadffmpeg-streaming-e7a65142b972fc1f7fd020d89c8f82dc3cfbc553.zip
ffmpeg-streaming-e7a65142b972fc1f7fd020d89c8f82dc3cfbc553.tar.gz
avcodec/aacpsy: Clear the correct pointer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/aacpsy.c')
-rw-r--r--libavcodec/aacpsy.c2
1 files changed, 1 insertions, 1 deletions
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);
}
OpenPOWER on IntegriCloud