diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-08-07 22:23:00 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-08-07 23:01:51 +0200 |
commit | 92deb28945a5f2b58908d383f183cfc1bc1d7fae (patch) | |
tree | 1363ab2a134989c846ce4127643849c67e1c6908 | |
parent | efcf1fcad32568d5784640c687b067dd205b1cba (diff) | |
download | ffmpeg-92deb28945a5f2b58908d383f183cfc1bc1d7fae.tar.gz |
avformat/mpegtsenc: use the correct deallocation functions
Found-by: Carl Eugen Hoyos <ce@hoyos.ws>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/mpegtsenc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index e4db9fc0b8..5d98ea8b7c 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); |