summaryrefslogtreecommitdiffstats
path: root/src/filemanager/layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/filemanager/layout.c')
-rw-r--r--src/filemanager/layout.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/filemanager/layout.c b/src/filemanager/layout.c
index c9d581f..1160772 100644
--- a/src/filemanager/layout.c
+++ b/src/filemanager/layout.c
@@ -1,7 +1,7 @@
/*
Panel layout module for the Midnight Commander
- Copyright (C) 1995-2023
+ Copyright (C) 1995-2024
Free Software Foundation, Inc.
Written by:
@@ -1015,8 +1015,7 @@ setup_cmdline (void)
#ifdef ENABLE_SUBSHELL
if (mc_global.tty.use_subshell)
{
- subshell_prompt = g_string_new (tmp_prompt);
- g_free (tmp_prompt);
+ subshell_prompt = g_string_new_take (tmp_prompt);
mc_prompt = subshell_prompt->str;
}
#endif