mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
* command.c (command_new): Fix memory leak.
* subshell.c (exit_subshell): Free pty_buffer.
This commit is contained in:
parent
6b97e4575f
commit
1fc1bdd0a4
@ -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
|
||||
|
@ -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");
|
||||
|
||||
|
@ -660,6 +660,7 @@ int exit_subshell (void)
|
||||
}
|
||||
|
||||
g_free (subshell_prompt);
|
||||
g_free (pty_buffer);
|
||||
subshell_prompt = NULL;
|
||||
|
||||
return quit;
|
||||
|
Loading…
Reference in New Issue
Block a user