Revert "Plug a mem leak in g_environ_unsetenv"
authorChristian Persch <chpe@gnome.org>
Sun, 5 Feb 2012 19:00:16 +0000 (20:00 +0100)
committerChristian Persch <chpe@gnome.org>
Sun, 5 Feb 2012 19:00:16 +0000 (20:00 +0100)
This reverts commit 2f4b46e3783b04cddcb2622a57b2a8e692cff68a, which was
pushed accidentally.

glib/genviron.c

index edb10e5..b876451 100644 (file)
@@ -198,9 +198,6 @@ g_environ_unsetenv (gchar       **envp,
           *f = *e;
           f++;
         }
-      else
-        g_free (*e);
-
       e++;
     }
   *f = NULL;