aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--ChangeLog.ja4
-rw-r--r--libsylph/md5_hmac.c3
3 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3a999db1..5fdc4334 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-07-27
+
+ * libsylph/md5_hmac.c: md5_hex_hmac(): fixed a memory leak.
+
2006-07-26
* src/compose.c: compose_reply_set_entry(): use original address
diff --git a/ChangeLog.ja b/ChangeLog.ja
index 284fb5e2..06bbd5d9 100644
--- a/ChangeLog.ja
+++ b/ChangeLog.ja
@@ -1,3 +1,7 @@
+2006-07-27
+
+ * libsylph/md5_hmac.c: md5_hex_hmac(): メモリリークを修正。
+
2006-07-26
* src/compose.c: compose_reply_set_entry(): 抽出したアドレス文字列
diff --git a/libsylph/md5_hmac.c b/libsylph/md5_hmac.c
index 5b264b0f..77ae39e9 100644
--- a/libsylph/md5_hmac.c
+++ b/libsylph/md5_hmac.c
@@ -1,6 +1,6 @@
/*
* LibSylph -- E-Mail client library
- * Copyright (C) 1999-2005 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2006 Hiroyuki Yamamoto
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -130,4 +130,5 @@ md5_hex_hmac(gchar *hexdigest,
md5 = md5_hmac_get(text, text_len, key, key_len);
s_gnet_md5_copy_string(md5, hexdigest);
hexdigest[S_GNET_MD5_HASH_LENGTH * 2] = '\0';
+ s_gnet_md5_delete(md5);
}