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

* mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
This commit is contained in:
Michael Snyder 2011-03-07 19:50:22 +00:00
parent 69feea6fe7
commit 0350914acf
2 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2011-03-06 Michael Snyder <msnyder@vmware.com>
* mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
* elfread.c (elf_symtab_read): Stop memory leak.
* main.c (captured_main): Fix memory leak.

View File

@ -279,4 +279,5 @@ _initialize_mi_cmd_env (void)
if (!env)
env = "";
orig_path = xstrdup (env);
free_environ (environment);
}