[gnome-keyring] egg-hkdf: Fix gcry_md_ht_t leak in egg_hkdf_perform
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring] egg-hkdf: Fix gcry_md_ht_t leak in egg_hkdf_perform
- Date: Tue, 14 Oct 2014 16:20:06 +0000 (UTC)
commit c2870de15ba639b6a02916a89be07274c2b5895b
Author: Christophe Fergeau <cfergeau redhat com>
Date: Wed Oct 1 22:44:13 2014 +0200
egg-hkdf: Fix gcry_md_ht_t leak in egg_hkdf_perform
The 'md2' gcry_md_ht_t variable is opened with gcry_md_open() in that
method but is never closed, which causes a leak.
https://bugzilla.gnome.org/show_bug.cgi?id=738508
egg/egg-hkdf.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/egg/egg-hkdf.c b/egg/egg-hkdf.c
index b5e2fe2..790f01c 100644
--- a/egg/egg-hkdf.c
+++ b/egg/egg-hkdf.c
@@ -102,6 +102,7 @@ egg_hkdf_perform (const gchar *hash_algo, gconstpointer input, gsize n_input,
break;
}
+ gcry_md_close (md2);
g_free (alloc);
gcry_free (buffer);
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]