gnupg/g10 (ChangeLog passphrase.c)
cvs user wk
cvs at cvs.gnupg.org
Mon Dec 13 09:00:47 CET 2004
Date: Monday, December 13, 2004 @ 09:04:52
Author: wk
Path: /cvs/gnupg/gnupg/g10
Modified: ChangeLog passphrase.c
(read_passphrase_from_fd): Fixed memory leak.
Noted by Andrei Darashenka.
--------------+
ChangeLog | 5 +++++
passphrase.c | 5 ++++-
2 files changed, 9 insertions(+), 1 deletion(-)
Index: gnupg/g10/ChangeLog
diff -u gnupg/g10/ChangeLog:1.653 gnupg/g10/ChangeLog:1.654
--- gnupg/g10/ChangeLog:1.653 Sun Dec 12 06:10:22 2004
+++ gnupg/g10/ChangeLog Mon Dec 13 09:04:52 2004
@@ -1,3 +1,8 @@
+2004-12-13 Werner Koch <wk at g10code.com>
+
+ * passphrase.c (read_passphrase_from_fd): Fixed memory leak.
+ Noted by Andrei Darashenka.
+
2004-12-11 David Shaw <dshaw at jabberwocky.com>
* keyserver.c (parse_preferred_keyserver): Force preferred
Index: gnupg/g10/passphrase.c
diff -u gnupg/g10/passphrase.c:1.70 gnupg/g10/passphrase.c:1.71
--- gnupg/g10/passphrase.c:1.70 Thu Dec 9 17:57:30 2004
+++ gnupg/g10/passphrase.c Mon Dec 13 09:04:52 2004
@@ -173,7 +173,10 @@
len += 100;
pw = m_alloc_secure( len );
if( pw2 )
- memcpy(pw, pw2, i );
+ {
+ memcpy(pw, pw2, i );
+ m_free (pw2);
+ }
else
i=0;
}
More information about the Gnupg-commits
mailing list