[vlc-commits] sftp: fix leak

Petri Hintukainen git at videolan.org
Fri Jan 27 22:22:16 CET 2017


vlc | branch: master | Petri Hintukainen <phintuka at gmail.com> | Fri Jan 27 22:46:56 2017 +0200| [dec6fe017f87a9fd321e2b8b475853ae4d84e48d] | committer: Petri Hintukainen

sftp: fix leak

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

 modules/access/sftp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/access/sftp.c b/modules/access/sftp.c
index f9bd8aa..6591d7f 100644
--- a/modules/access/sftp.c
+++ b/modules/access/sftp.c
@@ -278,6 +278,7 @@ static int Open( vlc_object_t* p_this )
 
         default:
             msg_Err( p_access, "Host uses unrecognized session-key algorithm" );
+            libssh2_knownhost_free( ssh_knownhosts );
             goto error;
 
     }



More information about the vlc-commits mailing list