Plug leak in handle string provided by sftp_open

This commit is contained in:
Sara Golemon 2004-12-24 03:57:10 +00:00
parent 6f13a93be9
commit 99795a165e
2 changed files with 3 additions and 0 deletions

2
README
View File

@ -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
-----------

View File

@ -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;