ffserver: free pathname before bailing out
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Tue, 15 Dec 2015 05:36:11 +0000 (21:36 -0800)
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Tue, 15 Dec 2015 18:04:59 +0000 (10:04 -0800)
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
ffserver.c

index 36dc234..fcee874 100644 (file)
@@ -443,6 +443,7 @@ static void start_children(FFServerStream *feed)
         feed->pid = fork();
         if (feed->pid < 0) {
             http_log("Unable to create children: %s\n", strerror(errno));
+            av_free (pathname);
             exit(EXIT_FAILURE);
         }