aboutsummaryrefslogtreecommitdiffhomepage
path: root/proc.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-09-25 05:31:17 +1000
committerGravatar axel <axel@liljencrantz.se>2005-09-25 05:31:17 +1000
commitf643a4e2007c547c0e224f35a5e10d2bf46ab489 (patch)
tree785a064b16021f4b86c3b837f627b57b8d67a74d /proc.c
parent62f3b442da763ce4b3d1f1b063888bf5c7d5ce74 (diff)
Fix minor bugs in parser
darcs-hash:20050924193117-ac50b-eb8ecfe4fec3bca6f89356a9079977802eb4a2c8.gz
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/proc.c b/proc.c
index 4c9fbb1c..a007b56a 100644
--- a/proc.c
+++ b/proc.c
@@ -154,12 +154,19 @@ static void free_process( process_t *p )
if( p==0 )
return;
+
+
free_process( p->next );
+ debug( 3, L"Free process %ls", p->actual_cmd );
free( p->actual_cmd );
if( p->argv != 0 )
{
+ debug( 3, L"Process has argument vector" );
for( arg=p->argv; *arg; arg++ )
+ {
+ debug( 3, L"Free argument %ls", *arg );
free( *arg );
+ }
free(p->argv );
}
free( p );