projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b220e1
)
mpegts: Use av_free() to free memory allocated by av_strdup()
author
Diego Biurrun
<diego@biurrun.de>
Fri, 8 Aug 2014 09:46:21 +0000
(
02:46
-0700)
committer
Diego Biurrun
<diego@biurrun.de>
Fri, 8 Aug 2014 10:12:57 +0000
(
03:12
-0700)
libavformat/mpegtsenc.c
patch
|
blob
|
history
diff --git
a/libavformat/mpegtsenc.c
b/libavformat/mpegtsenc.c
index
67bc7eb
..
457b2e7
100644
(file)
--- 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);