[FFmpeg-cvslog] avformat/mpegtsenc: use the correct deallocation functions
Michael Niedermayer
git at videolan.org
Thu Aug 7 23:06:29 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Aug 7 22:23:00 2014 +0200| [92deb28945a5f2b58908d383f183cfc1bc1d7fae] | committer: Michael Niedermayer
avformat/mpegtsenc: use the correct deallocation functions
Found-by: Carl Eugen Hoyos <ce at hoyos.ws>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=92deb28945a5f2b58908d383f183cfc1bc1d7fae
---
libavformat/mpegtsenc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index e4db9fc..5d98ea8 100644
--- a/libavformat/mpegtsenc.c
+++ b/libavformat/mpegtsenc.c
@@ -534,9 +534,9 @@ static MpegTSService *mpegts_add_service(MpegTSWrite *ts, int sid,
service->provider_name = av_strdup(provider_name);
service->name = av_strdup(name);
if (!service->provider_name || !service->name) {
- free(service->provider_name);
- free(service->name);
- free(service);
+ av_freep(&service->provider_name);
+ av_freep(&service->name);
+ av_free(service);
return NULL;
}
dynarray_add(&ts->services, &ts->nb_services, service);
More information about the ffmpeg-cvslog
mailing list