vlc | branch: master | Rémi Denis-Courmont <r...@remlab.net> | Thu Sep 15 
14:11:58 2016 +0300| [3f63255470e2d4bb97c2ee427b578c05a15cc26f] | committer: 
Rémi Denis-Courmont

ftp: fix memory leaks

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

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

diff --git a/modules/access/ftp.c b/modules/access/ftp.c
index c30fa46..b75f1c5 100644
--- a/modules/access/ftp.c
+++ b/modules/access/ftp.c
@@ -1137,14 +1137,13 @@ static int ftp_StartStream( vlc_object_t *p_access, 
access_sys_t *p_sys,
     {
         if( p_sys->features.b_mlst &&
             ftp_SendCommand( p_access, p_sys, "MLSD" ) >= 0 &&
-            ftp_RecvCommand( p_access, p_sys, NULL, &psz_arg ) <= 2 )
+            ftp_RecvCommand( p_access, p_sys, NULL, NULL ) <= 2 )
         {
             msg_Dbg( p_access, "Using MLST extension to list" );
         }
         else
-
         if( ftp_SendCommand( p_access, p_sys, "NLST" ) < 0 ||
-            ftp_RecvCommand( p_access, p_sys, NULL, &psz_arg ) > 2 )
+            ftp_RecvCommand( p_access, p_sys, NULL, NULL ) > 2 )
         {
             msg_Err( p_access, "cannot list directory contents" );
             return VLC_EGENERIC;

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to