[vlc-commits] interface: fix memory leak

Hannes Domani git at videolan.org
Tue Sep 9 17:28:31 CEST 2014


vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Fri Sep  5 16:15:06 2014 +0200| [c53f31a51223a9d8c0c6e07b5d705d7a096dc963] | committer: Tristan Matthews

interface: fix memory leak

Signed-off-by: Tristan Matthews <le.businessman at gmail.com>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c53f31a51223a9d8c0c6e07b5d705d7a096dc963
---

 src/interface/interface.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/interface/interface.c b/src/interface/interface.c
index 5e733e1..4bc709a 100644
--- a/src/interface/interface.c
+++ b/src/interface/interface.c
@@ -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)



More information about the vlc-commits mailing list