[PATCH 4/4] fix small memory leak in pinentry-curses
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Tue Apr 28 19:01:16 CEST 2015
* pinentry/pinentry-curses.c: free internally allocated local string.
---
pinentry/pinentry-curses.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/pinentry/pinentry-curses.c b/pinentry/pinentry-curses.c
index 4b7080e..043f8a9 100644
--- a/pinentry/pinentry-curses.c
+++ b/pinentry/pinentry-curses.c
@@ -199,6 +199,8 @@ utf8_to_local (char *lc_ctype, char *string)
memset (&ps, 0, sizeof(mbstate_t));
mbsrtowcs (wcs, &p, len, &ps);
+ free (local);
+
leave:
if (old_ctype)
{
--
2.1.4
More information about the Gnupg-devel
mailing list