mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-23 16:20:58 +03:00
mbedtls: Avoid one more memory leak
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Eshan Kelkar <eshankelkar@galorithm.com>
This commit is contained in:
@ -1075,7 +1075,7 @@ ssh_string pki_key_to_blob(const ssh_key key, enum ssh_key_e type)
|
||||
|
||||
if (d == NULL) {
|
||||
SSH_BUFFER_FREE(buffer);
|
||||
return NULL;
|
||||
goto out;
|
||||
}
|
||||
|
||||
rc = ssh_buffer_add_ssh_string(buffer, d);
|
||||
|
Reference in New Issue
Block a user