aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-07-01 11:43:01 +0000
committerJustus Winter <[email protected]>2016-07-01 11:43:01 +0000
commitc454922ffa71929c810c6ff048d902498575302f (patch)
tree5e9a775451cbea00dcd7f309d8e337065abb15a9
parentg10: Fix build with disabled kbnode cache. (diff)
downloadgnupg-c454922ffa71929c810c6ff048d902498575302f.tar.gz
gnupg-c454922ffa71929c810c6ff048d902498575302f.zip
g10: Fix memory leak.
* g10/import.c (transfer_secret_keys): Release curve from the previous iteration. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to '')
-rw-r--r--g10/import.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/import.c b/g10/import.c
index b6bc0f28a..332e2667a 100644
--- a/g10/import.c
+++ b/g10/import.c
@@ -1524,6 +1524,7 @@ transfer_secret_keys (ctrl_t ctrl, struct import_stats_s *stats,
else
{
const char *curvename = openpgp_oid_to_curve (curvestr, 1);
+ gcry_sexp_release (curve);
err = gcry_sexp_build (&curve, NULL, "(curve %s)",
curvename?curvename:curvestr);
xfree (curvestr);