avcodec/aacpsy: Clear the correct pointer

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/136/head
Michael Niedermayer 10 years ago
parent 63fdedc794
commit e7a65142b9
  1. 2
      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)); pctx->ch = av_mallocz_array(ctx->avctx->channels, sizeof(AacPsyChannel));
if (!pctx->ch) { if (!pctx->ch) {
av_freep(&pctx); av_freep(&ctx->model_priv_data);
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
} }

Loading…
Cancel
Save