[vlc-commits] commit: FTP: memory leak ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Tue Aug 3 22:56:14 CEST 2010


vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug  3 23:55:53 2010 +0300| [a864e0e4c1fd2b8c4c02f79dd46194c2e7e54eb4] | committer: Rémi Denis-Courmont 

FTP: memory leak

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

 modules/access/ftp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/access/ftp.c b/modules/access/ftp.c
index fbe3133..7acc674 100644
--- a/modules/access/ftp.c
+++ b/modules/access/ftp.c
@@ -359,7 +359,7 @@ static int InOpen( vlc_object_t *p_this )
         msg_Dbg( p_access, "cannot get file size" );
         msg_Dbg( p_access, "will try to get directory contents" );
         if( ftp_SendCommand( p_this, p_sys, "CWD %s", p_sys->url.psz_path ) < 0
-         || ftp_ReadCommand( p_this, p_sys, NULL, &psz_arg ) != 2 )
+         || ftp_ReadCommand( p_this, p_sys, NULL, NULL ) != 2 )
         {
             msg_Err( p_access, "file or directory doesn't exist" );
             net_Close( p_sys->fd_cmd );



More information about the vlc-commits mailing list