Browse Source

avformat/hlsenc: Fix leak of child AVFormatContext

Before ed897633, the hls muxer would free its child AVFormatContexts
and reset the pointer to these contexts to NULL immediately afterwards;
ed897633 moved the former to later (into a separate function), but kept
the resetting, ensuring that the child context leaks.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Reviewed-by: Steven Liu <lq@onvideo.cn>
tags/n4.3
Andreas Rheinhardt Steven Liu 6 years ago
parent
commit
7d6637bcc4
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      libavformat/hlsenc.c

+ 0
- 1
libavformat/hlsenc.c View File

@@ -2631,7 +2631,6 @@ failed:
}
ffio_free_dyn_buf(&oc->pb);

vs->avf = NULL;
av_free(old_filename);
}



Loading…
Cancel
Save