mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-02 14:33:23 +02:00
avformat/mpegtsenc: use the correct deallocation functions
Found-by: Carl Eugen Hoyos <ce@hoyos.ws> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
efcf1fcad3
commit
92deb28945
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user