ffserver: free pathname before bailing out
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
This commit is contained in:
parent
1fa81430ca
commit
dadb95142b
@ -443,6 +443,7 @@ static void start_children(FFServerStream *feed)
|
|||||||
feed->pid = fork();
|
feed->pid = fork();
|
||||||
if (feed->pid < 0) {
|
if (feed->pid < 0) {
|
||||||
http_log("Unable to create children: %s\n", strerror(errno));
|
http_log("Unable to create children: %s\n", strerror(errno));
|
||||||
|
av_free (pathname);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user