[vlc-commits] interface: fix memleak

Rafaël Carré git at videolan.org
Sun Jun 26 21:30:11 CEST 2011


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Sun Jun 26 14:00:46 2011 -0400| [6e5543ce9aa1a27fd0835013abf11991e8e8e9d1] | committer: Rafaël Carré

interface: fix memleak

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

 src/interface/interface.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/interface/interface.c b/src/interface/interface.c
index 5fc7c91..abc3248 100644
--- a/src/interface/interface.c
+++ b/src/interface/interface.c
@@ -124,6 +124,7 @@ int intf_Create( vlc_object_t *p_this, const char *chain )
     free( psz_tmp );
     free( psz_parser );
     p_intf->p_module = module_need( p_intf, "interface", module, true );
+    free(module);
     if( p_intf->p_module == NULL )
     {
         msg_Err( p_intf, "no suitable interface module" );



More information about the vlc-commits mailing list