1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-30 13:01:23 +03:00

libcrypto: Use SSH_STRING_FREE()

Fixes T183

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Andreas Schneider
2019-10-28 12:25:30 +01:00
parent 9a112f1548
commit 09dfda8489

View File

@@ -738,7 +738,7 @@ ssh_string ssh_sexp_extract_mpi(const gcry_sexp_t sexp,
err = gcry_mpi_print(outformat, ssh_string_data(result), size, NULL, mpi);
if (err != 0) {
ssh_string_burn(result);
ssh_string_free(result);
SSH_STRING_FREE(result);
result = NULL;
goto fail;
}