asfenc: fix leaking asf->index_ptr on error

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/124/merge
Andreas Cadhalpun 10 years ago committed by Michael Niedermayer
parent cf82c426fa
commit 2c8cff2be4
  1. 1
      libavformat/asfenc.c

@ -660,6 +660,7 @@ static int asf_write_header(AVFormatContext *s)
* It is needed to use asf as a streamable format. */
if (asf_write_header1(s, 0, DATA_HEADER_SIZE) < 0) {
//av_free(asf);
av_freep(&asf->index_ptr);
return -1;
}

Loading…
Cancel
Save