aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-22 21:56:44 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-22 21:56:44 +0200
commit93c4a8e42748ff2c4b67baf8afe497508f20f75e (patch)
tree96a8dd308413e4cf81ec9d12319c5194432a74a9
parent9da331e79b4c0ccb82f43ad130835ff3408d7355 (diff)
downloadlibssh-93c4a8e42748ff2c4b67baf8afe497508f20f75e.tar.gz
libssh-93c4a8e42748ff2c4b67baf8afe497508f20f75e.tar.xz
libssh-93c4a8e42748ff2c4b67baf8afe497508f20f75e.zip
pki: Fix memleak in gcrypt pki_publickey_to_blob().
-rw-r--r--src/pki_gcrypt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pki_gcrypt.c b/src/pki_gcrypt.c
index ab83228..06bf1a3 100644
--- a/src/pki_gcrypt.c
+++ b/src/pki_gcrypt.c
@@ -1105,6 +1105,7 @@ ssh_string pki_publickey_to_blob(const ssh_key key)
goto fail;
}
ssh_string_fill(e, (char *) tmp, size);
+ gcry_sexp_release(sexp);
sexp = gcry_sexp_find_token(key->rsa, "n", 0);
if (sexp == NULL) {