diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-21 19:24:32 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-21 19:25:17 +0100 |
commit | f7a4589b3670186991e5eb6e799176c95313d532 (patch) | |
tree | 2d88eab25f5b8f3b8e9b7d3083536e3064890929 | |
parent | 47b9481d9db8a362d464b7383dc7b149e0119789 (diff) | |
download | ffmpeg-f7a4589b3670186991e5eb6e799176c95313d532.tar.gz |
avformat/mpegtsenc: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/mpegtsenc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 3b898da53b..8d0da0b4ed 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -814,9 +814,9 @@ fail: service = ts->services[i]; av_freep(&service->provider_name); av_freep(&service->name); - av_free(service); + av_freep(&service); } - av_free(ts->services); + av_freep(&ts->services); return ret; } @@ -1417,9 +1417,9 @@ static int mpegts_write_end(AVFormatContext *s) service = ts->services[i]; av_freep(&service->provider_name); av_freep(&service->name); - av_free(service); + av_freep(&service); } - av_free(ts->services); + av_freep(&ts->services); return 0; } |