ffserver: free nacl as needed
authorReynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com>
Fri, 25 Apr 2014 21:19:16 +0000 (18:19 -0300)
committerReynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com>
Fri, 25 Apr 2014 22:49:55 +0000 (19:49 -0300)
Should fix FFmpeg Coverity Scan issue #732268

Signed-off-by: Reynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com>
ffserver.c

index 48d8808..ea0ccd8 100644 (file)
@@ -1365,7 +1365,8 @@ static void parse_acl_row(FFStream *stream, FFStream* feed, IPAddressACL *ext_ac
                 naclp = &(*naclp)->next;
 
             *naclp = nacl;
-        }
+        } else
+            av_free(nacl);
     }
 }