1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-02 01:17:52 +03:00

pki: Don't leak a buffer.

This commit is contained in:
Andreas Schneider
2013-10-19 10:41:57 +02:00
parent 5201c5850e
commit b8d47a438c

View File

@@ -1053,10 +1053,12 @@ ssh_string pki_signature_to_blob(const ssh_signature sig)
sig_blob = ssh_string_new(buffer_get_rest_len(b));
if (sig_blob == NULL) {
ssh_buffer_free(b);
return NULL;
}
ssh_string_fill(sig_blob, buffer_get_rest(b), buffer_get_rest_len(b));
ssh_buffer_free(b);
break;
}
#endif