[vlc-commits] dsm: Fix leak

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


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

dsm: Fix leak

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

 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..b50d8ee 100644
--- a/modules/access/dsm/access.c
+++ b/modules/access/dsm/access.c
@@ -239,10 +239,10 @@ static void Close( vlc_object_t *p_this )
         smb_fclose( p_sys->p_session, p_sys->i_fd );
     if( p_sys->p_session )
         smb_session_destroy( p_sys->p_session );
+    vlc_UrlClean( &p_sys->url );
     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 );



More information about the vlc-commits mailing list