diff options
author | axel <axel@liljencrantz.se> | 2006-05-28 21:06:30 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-05-28 21:06:30 +1000 |
commit | 79b466441b2e49da68d4fe697cd263dc7a6cfdb9 (patch) | |
tree | a7f2dabe1941460d8bc860004b87e84770903ad2 /parser.c | |
parent | 9f14d50974a96db9929787677c793de755881625 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |