[glib] Revert "Plug a mem leak in g_environ_unsetenv"



commit 7e9aed94deb6d6b9f25af539d84bb1e66c958cbc
Author: Christian Persch <chpe gnome org>
Date:   Sun Feb 5 20:00:16 2012 +0100

    Revert "Plug a mem leak in g_environ_unsetenv"
    
    This reverts commit 2f4b46e3783b04cddcb2622a57b2a8e692cff68a, which was
    pushed accidentally.

 glib/genviron.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/glib/genviron.c b/glib/genviron.c
index edb10e5..b876451 100644
--- a/glib/genviron.c
+++ b/glib/genviron.c
@@ -198,9 +198,6 @@ g_environ_unsetenv (gchar       **envp,
           *f = *e;
           f++;
         }
-      else
-        g_free (*e);
-
       e++;
     }
   *f = NULL;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]