avcodec/flac_parser: Don't leave stale pointer in memory

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
pull/323/head
Andreas Rheinhardt 6 years ago committed by Paul B Mahol
parent 87b30f8af8
commit 5873feac54
  1. 1
      libavcodec/flac_parser.c

@ -734,6 +734,7 @@ static void flac_parse_close(AVCodecParserContext *c)
av_free(curr); av_free(curr);
curr = temp; curr = temp;
} }
fpc->headers = NULL;
av_fifo_freep(&fpc->fifo_buf); av_fifo_freep(&fpc->fifo_buf);
av_freep(&fpc->wrap_buf); av_freep(&fpc->wrap_buf);
} }

Loading…
Cancel
Save