[vlc-commits] [Git][videolan/vlc][master] access: sftp: move psz_home cleanup back to end of function
Steve Lhomme (@robUx4)
gitlab at videolan.org
Mon Dec 15 20:03:17 UTC 2025
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
More information about the vlc-commits
mailing list