diff options
author | Diego Biurrun <diego@biurrun.de> | 2014-08-08 02:46:21 -0700 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2014-08-08 03:12:57 -0700 |
commit | 454697603e4efdfc04fadec40518d56c7dc1e5dd (patch) | |
tree | c055b7acf19bd7fade05b55146c972a716a8867b /libavformat | |
parent | 5b220e1e19c17b202d83d9be0868d152109ae8f0 (diff) | |
download | ffmpeg-454697603e4efdfc04fadec40518d56c7dc1e5dd.tar.gz |
mpegts: Use av_free() to free memory allocated by av_strdup()
Diffstat (limited to 'libavformat')
-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 67bc7ebf3e..457b2e77fd 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -434,9 +434,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_free(service->provider_name); + av_free(service->name); + av_free(service); return NULL; } dynarray_add(&ts->services, &ts->nb_services, service); |