From 0350914acfaf4b21584a44262cd13b6a35bfce10 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Mon, 7 Mar 2011 19:50:22 +0000 Subject: 2011-03-05 Michael Snyder * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment. --- gdb/mi/mi-cmd-env.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gdb/mi/mi-cmd-env.c') diff --git a/gdb/mi/mi-cmd-env.c b/gdb/mi/mi-cmd-env.c index f77474b..ad34aac 100644 --- a/gdb/mi/mi-cmd-env.c +++ b/gdb/mi/mi-cmd-env.c @@ -279,4 +279,5 @@ _initialize_mi_cmd_env (void) if (!env) env = ""; orig_path = xstrdup (env); + free_environ (environment); } -- cgit v1.1