Commit 92deb289 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/mpegtsenc: use the correct deallocation functions

Found-by: 's avatarCarl Eugen Hoyos <ce@hoyos.ws>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent efcf1fca
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment