interface: fix memory leak
authorHannes Domani <ssbssa@yahoo.de>
Fri, 5 Sep 2014 14:15:06 +0000 (16:15 +0200)
committerTristan Matthews <le.businessman@gmail.com>
Tue, 9 Sep 2014 15:15:07 +0000 (11:15 -0400)
Signed-off-by: Tristan Matthews <le.businessman@gmail.com>
src/interface/interface.c

index 5e733e1..4bc709a 100644 (file)
@@ -207,6 +207,7 @@ int libvlc_InternalAddIntf(libvlc_int_t *libvlc, const char *name)
                          "Use 'cvlc' to use vlc without interface."));
         }
         ret = intf_Create(playlist, intf);
+        free(intf);
         name = "default";
     }
     if (ret != VLC_SUCCESS)