summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2018-02-14 14:54:51 +0100
committerWerner Koch <wk@gnupg.org>2018-02-14 14:54:51 +0100
commit80719612b7e92aff5887f2a68d550a24f350722c (patch)
tree8290c906036f0738d49ca67290e181e46e9fe2d4
parentsm: Fix a wrong key parameter in an exported private key file (diff)
downloadgnupg2-80719612b7e92aff5887f2a68d550a24f350722c.tar.xz
gnupg2-80719612b7e92aff5887f2a68d550a24f350722c.zip
sm: Fix minor memory leak in --export-p12.
* sm/export.c (gpgsm_p12_export): Free KEYGRIP. Signed-off-by: Werner Koch <wk@gnupg.org>
-rw-r--r--sm/export.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sm/export.c b/sm/export.c
index a8c9a4afc..7bea9ccc5 100644
--- a/sm/export.c
+++ b/sm/export.c
@@ -479,6 +479,7 @@ gpgsm_p12_export (ctrl_t ctrl, const char *name, estream_t stream, int rawmode)
leave:
gnupg_ksba_destroy_writer (b64writer);
ksba_cert_release (cert);
+ xfree (keygrip);
xfree (desc);
keydb_release (hd);
}