Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
1c918825 by Abderhman Gamal at 2025-12-15T20:03:03+00:00
access: sftp: move psz_home cleanup back to end of function

- - - - -


1 changed file:

- modules/access/sftp.c


Changes:

=====================================
modules/access/sftp.c
=====================================
@@ -339,7 +339,6 @@ static int Open( vlc_object_t* p_this )
                 msg_Err( p_access, "Failure reading known_hosts '%s'", 
psz_knownhosts_file );
             free( psz_knownhosts_file );
         }
-        free( psz_home );
     }
 
     const char *fingerprint = libssh2_session_hostkey( p_sys->ssh_session, 
&i_len, &i_type );
@@ -567,6 +566,7 @@ static int Open( vlc_object_t* p_this )
     i_result = VLC_SUCCESS;
 
 error:
+    free( psz_home );
     free( psz_session_username );
     free( psz_path );
     vlc_credential_clean( &credential );



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/1c918825b9c83c79fc7840c9d46fd398f2cc2437

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/1c918825b9c83c79fc7840c9d46fd398f2cc2437
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to