aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sm/ChangeLog4
-rw-r--r--sm/fingerprint.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/sm/ChangeLog b/sm/ChangeLog
index a3c818a72..94d81d444 100644
--- a/sm/ChangeLog
+++ b/sm/ChangeLog
@@ -1,3 +1,7 @@
+2006-12-18 Marcus Brinkmann <[email protected]>
+
+ * fingerprint.c (gpgsm_get_fingerprint): Close MD.
+
2006-11-24 Werner Koch <[email protected]>
* certdump.c (parse_dn_part): Take '#' as a special character only
diff --git a/sm/fingerprint.c b/sm/fingerprint.c
index d6a3900f0..b726af36a 100644
--- a/sm/fingerprint.c
+++ b/sm/fingerprint.c
@@ -79,6 +79,7 @@ gpgsm_get_fingerprint (ksba_cert_t cert, int algo,
}
gcry_md_final (md);
memcpy (array, gcry_md_read(md, algo), len );
+ gcry_md_close (md);
return array;
}