diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-16 15:04:41 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-16 15:37:04 +0100 |
commit | b8eb8b03104abb926616eb48fcb6d00127704bea (patch) | |
tree | aa4c308ae2946857ade8d6938527c18430978418 /libavformat/hlsenc.c | |
parent | 91ea466551c148bd897706a1b6a168e783761a06 (diff) | |
download | ffmpeg-b8eb8b03104abb926616eb48fcb6d00127704bea.tar.gz |
avformat/hlsenc: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r-- | libavformat/hlsenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 7645065bc2..f46e8d4a53 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -396,7 +396,7 @@ fail: av_dict_free(&options); if (ret) { - av_free(hls->basename); + av_freep(&hls->basename); if (hls->avf) avformat_free_context(hls->avf); } @@ -479,7 +479,7 @@ static int hls_write_trailer(struct AVFormatContext *s) avio_closep(&oc->pb); hls_append_segment(hls, hls->duration, hls->start_pos, hls->size); } - av_free(hls->basename); + av_freep(&hls->basename); avformat_free_context(oc); hls->avf = NULL; hls_window(s, 1); |