This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.


OK?

2011-03-05  Michael Snyder  <msnyder@vmware.com>

	* mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.

Index: mi/mi-cmd-env.c
===================================================================
RCS file: /cvs/src/src/gdb/mi/mi-cmd-env.c,v
retrieving revision 1.23
diff -u -p -r1.23 mi-cmd-env.c
--- mi/mi-cmd-env.c	12 Jan 2011 21:09:39 -0000	1.23
+++ mi/mi-cmd-env.c	5 Mar 2011 20:44:03 -0000
@@ -279,4 +279,5 @@ _initialize_mi_cmd_env (void)
   if (!env)
     env = "";
   orig_path = xstrdup (env);
+  free_environ (environment);
 }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]