mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/aacpsy: Clear the correct pointer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
63fdedc794
commit
e7a65142b9
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue