alonbl      15/05/03 15:17:14

  Added:                pinentry-0.9.1-memleak.patch
  Log:
  Version bump, bug#548456
  
  (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 
BF20DC51)

Revision  Changes    Path
1.1                  app-crypt/pinentry/files/pinentry-0.9.1-memleak.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/pinentry/files/pinentry-0.9.1-memleak.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/pinentry/files/pinentry-0.9.1-memleak.patch?rev=1.1&content-type=text/plain

Index: pinentry-0.9.1-memleak.patch
===================================================================
>From 03e4207f11e228a4c079af991f82507539793bae Mon Sep 17 00:00:00 2001
From: Daniel Kahn Gillmor <[email protected]>
Date: Tue, 28 Apr 2015 13:01:16 -0400
Subject: [PATCH] fix small memory leak in pinentry-curses

* 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





Reply via email to