]> git.sesse.net Git - vlc/commitdiff
avio out: fix memleak in error path
authorRafaël Carré <funman@videolan.org>
Mon, 10 Oct 2011 02:49:30 +0000 (22:49 -0400)
committerRafaël Carré <funman@videolan.org>
Tue, 11 Oct 2011 21:22:53 +0000 (17:22 -0400)
modules/access/avio.c

index 308a8a3715a33966a21cf33474a44e35ece4b61a..c6339ff0eb67b1eb8a22cb1e50594265f58f1740 100644 (file)
@@ -145,6 +145,7 @@ int OutOpenAvio(vlc_object_t *object)
      * with an exclusive lock */
     if (SetupAvio(VLC_OBJECT(access))) {
         msg_Err(access, "Module aready in use");
+        free(sys);
         return VLC_EGENERIC;
     }