[vlc-commits] dsm: Fix leak

Hugo Beauzée-Luyssen git at videolan.org
Tue Mar 10 15:28:27 CET 2015


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Mar 10 14:33:26 2015 +0100| [eb2ed0e14a44bb716f155d5158424d7cbb359857] | committer: Hugo Beauzée-Luyssen

dsm: Fix leak

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

 modules/access/dsm/access.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/dsm/access.c b/modules/access/dsm/access.c
index 79ee799..6c90be9 100644
--- a/modules/access/dsm/access.c
+++ b/modules/access/dsm/access.c
@@ -242,10 +242,10 @@ static void Close( vlc_object_t *p_this )
     free( p_sys->creds.login );
     free( p_sys->creds.password );
     free( p_sys->creds.domain );
-    free( p_sys->url.psz_buffer );
     free( p_sys->psz_share );
     free( p_sys->psz_path );
     free( p_sys );
+    vlc_UrlClean( &p_sys->url );
 }
 
 /*****************************************************************************



More information about the vlc-commits mailing list