aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-08-22 05:32:24 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-08-22 05:32:24 +0000
commitb201f0492a4a3a97f13562331629ba9686589e31 (patch)
treef9c30d311a83b0793bb4f870d9b94833b78aa6f3 /shell
parentcdc78450293b0f80be651d25499a0c048a14c132 (diff)
downloadbusybox-w32-b201f0492a4a3a97f13562331629ba9686589e31.tar.gz
busybox-w32-b201f0492a4a3a97f13562331629ba9686589e31.tar.bz2
busybox-w32-b201f0492a4a3a97f13562331629ba9686589e31.zip
Fix a warning and potential segfault in lash when BB_FEATURE_CLEAN_UP
is enabled git-svn-id: svn://busybox.net/trunk/busybox@3331 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r--shell/lash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/lash.c b/shell/lash.c
index 0af669116..22e3c779e 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -1507,8 +1507,8 @@ static int busy_loop(FILE * input)
1507#ifdef BB_FEATURE_CLEAN_UP 1507#ifdef BB_FEATURE_CLEAN_UP
1508void free_memory(void) 1508void free_memory(void)
1509{ 1509{
1510 if (cwd) { 1510 if (cwd && cwd!=unknown) {
1511 free(cwd); 1511 free((char*)cwd);
1512 } 1512 }
1513 if (local_pending_command) 1513 if (local_pending_command)
1514 free(local_pending_command); 1514 free(local_pending_command);