aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-05-28 21:06:30 +1000
committerGravatar axel <axel@liljencrantz.se>2006-05-28 21:06:30 +1000
commit79b466441b2e49da68d4fe697cd263dc7a6cfdb9 (patch)
treea7f2dabe1941460d8bc860004b87e84770903ad2 /parser.c
parent9f14d50974a96db9929787677c793de755881625 (diff)
Fix major memory leak in highlighting code and a minor leak in the parser
darcs-hash:20060528110630-ac50b-94a83ec6731b39ebcf864b7491ec3c372e28a135.gz
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser.c b/parser.c
index 8514faa8..6e58b54b 100644
--- a/parser.c
+++ b/parser.c
@@ -1976,7 +1976,7 @@ static int parse_job( process_t *p,
tmp = (wchar_t *)al_get( args, 0 );
al_truncate( args, 0 );
- al_push( args, wcsdup( L"cd" ) );
+ al_push( args, halloc_wcsdup( j, L"cd" ) );
al_push( args, tmp );
/*
If we have defined a wrapper around cd, use it,