Browse Source

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

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
tags/n4.3
Andreas Rheinhardt Paul B Mahol 6 years ago
parent
commit
5873feac54
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/flac_parser.c

+ 1
- 0
libavcodec/flac_parser.c View File

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


Loading…
Cancel
Save