* command.c (command_new): Fix memory leak.

* subshell.c (exit_subshell): Free pty_buffer.
This commit is contained in:
Pavel Roskin 2003-06-06 15:52:13 +00:00
parent 6b97e4575f
commit 1fc1bdd0a4
3 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-06-06 Pavel Roskin <proski@gnu.org>
* command.c (command_new): Fix memory leak.
* subshell.c (exit_subshell): Free pty_buffer.
2003-06-05 Pavel Roskin <proski@gnu.org>
* dir.c (do_load_dir): Add new argument "path" to avoid the need

View File

@ -268,7 +268,7 @@ command_callback (WInput *cmd, int msg, int par)
WInput *
command_new (int y, int x, int cols)
{
WInput *cmd = g_new (WInput, 1);
WInput *cmd;
cmd = input_new (y, x, DEFAULT_COLOR, cols, "", "cmdline");

View File

@ -660,6 +660,7 @@ int exit_subshell (void)
}
g_free (subshell_prompt);
g_free (pty_buffer);
subshell_prompt = NULL;
return quit;