mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-18 09:19:24 +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>
|
2003-06-05 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* dir.c (do_load_dir): Add new argument "path" to avoid the need
|
* 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 *
|
WInput *
|
||||||
command_new (int y, int x, int cols)
|
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");
|
cmd = input_new (y, x, DEFAULT_COLOR, cols, "", "cmdline");
|
||||||
|
|
||||||
|
@ -660,6 +660,7 @@ int exit_subshell (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
g_free (subshell_prompt);
|
g_free (subshell_prompt);
|
||||||
|
g_free (pty_buffer);
|
||||||
subshell_prompt = NULL;
|
subshell_prompt = NULL;
|
||||||
|
|
||||||
return quit;
|
return quit;
|
||||||
|
Loading…
Reference in New Issue
Block a user