aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-21 19:24:32 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-21 19:25:17 +0100
commitf7a4589b3670186991e5eb6e799176c95313d532 (patch)
tree2d88eab25f5b8f3b8e9b7d3083536e3064890929 /libavformat
parent47b9481d9db8a362d464b7383dc7b149e0119789 (diff)
downloadffmpeg-f7a4589b3670186991e5eb6e799176c95313d532.tar.gz
avformat/mpegtsenc: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mpegtsenc.c8
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;
}