Plug leak in handle string provided by sftp_open
This commit is contained in:
parent
6f13a93be9
commit
99795a165e
2
README
2
README
@ -6,6 +6,8 @@ Version 0.4
|
||||
|
||||
Fixed crash when trying to free sftp_dirhandle data from a filehandle struct.
|
||||
|
||||
Fixed leak in sftp_open_ex(), handle->handle not freed in handle_close().
|
||||
|
||||
Version 0.3
|
||||
-----------
|
||||
|
||||
|
@ -955,6 +955,7 @@ LIBSSH2_API int libssh2_sftp_close_handle(LIBSSH2_SFTP_HANDLE *handle)
|
||||
LIBSSH2_FREE(session, handle->u.dir.names_packet);
|
||||
}
|
||||
|
||||
LIBSSH2_FREE(session, handle->handle);
|
||||
LIBSSH2_FREE(session, handle);
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user