[vlc-commits] interface: fix memory leak

Hannes Domani git at videolan.org
Wed Sep 10 06:48:01 CEST 2014


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

interface: fix memory leak

Signed-off-by: Tristan Matthews <le.businessman at gmail.com>
(cherry picked from commit c53f31a51223a9d8c0c6e07b5d705d7a096dc963)

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

 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