Bug fix.
authorEric Andersen <andersen@codepoet.org>
Tue, 23 Jan 2001 00:27:51 +0000 (00:27 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 23 Jan 2001 00:27:51 +0000 (00:27 -0000)
lash.c
sh.c
shell/lash.c

diff --git a/lash.c b/lash.c
index 9e6d095..52c87ee 100644 (file)
--- a/lash.c
+++ b/lash.c
@@ -1665,8 +1665,6 @@ static int busy_loop(FILE * input)
 #ifdef BB_FEATURE_CLEAN_UP
 void free_memory(void)
 {
-       if (prompt_str)
-               free(prompt_str);
        if (cwd)
                free(cwd);
        if (local_pending_command)
diff --git a/sh.c b/sh.c
index 9e6d095..52c87ee 100644 (file)
--- a/sh.c
+++ b/sh.c
@@ -1665,8 +1665,6 @@ static int busy_loop(FILE * input)
 #ifdef BB_FEATURE_CLEAN_UP
 void free_memory(void)
 {
-       if (prompt_str)
-               free(prompt_str);
        if (cwd)
                free(cwd);
        if (local_pending_command)
index 9e6d095..52c87ee 100644 (file)
@@ -1665,8 +1665,6 @@ static int busy_loop(FILE * input)
 #ifdef BB_FEATURE_CLEAN_UP
 void free_memory(void)
 {
-       if (prompt_str)
-               free(prompt_str);
        if (cwd)
                free(cwd);
        if (local_pending_command)