Fixed leak in sftp_symlink_ex(),
result for READLINK and REALPATH not freed unless there was an error.
This commit is contained in:
parent
99795a165e
commit
a1e649b507
2
README
2
README
@ -8,6 +8,8 @@ Version 0.4
|
||||
|
||||
Fixed leak in sftp_open_ex(), handle->handle not freed in handle_close().
|
||||
|
||||
Fixed leak in sftp_symlink_ex(), result for READLINK and REALPATH not freed unless there was an error.
|
||||
|
||||
Version 0.3
|
||||
-----------
|
||||
|
||||
|
@ -1336,6 +1336,7 @@ LIBSSH2_API int libssh2_sftp_symlink_ex(LIBSSH2_SFTP *sftp, const char *path, in
|
||||
link_len = target_len;
|
||||
}
|
||||
memcpy(target, data + 13, link_len);
|
||||
LIBSSH2_FREE(session, data);
|
||||
|
||||
return link_len;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user