1
0
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:
Jakub Jelen
2025-06-03 15:37:49 +02:00
parent b8e587e498
commit 4f239f79c6

View File

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