Revision 6654296c

View differences:

libavcodec/atrac3.c
1047 1047
    dsputil_init(&dsp, avctx);
1048 1048

  
1049 1049
    q->pUnits = av_mallocz(sizeof(channel_unit)*q->channels);
1050
    if (!q->pUnits) {
1051
        av_free(q->decoded_bytes_buffer);
1052
        return AVERROR(ENOMEM);
1053
    }
1050 1054

  
1051 1055
    return 0;
1052 1056
}

Also available in: Unified diff