fix a memory leak in profiling, add a profiling test

This commit is contained in:
Jan Kanis
2013-01-14 01:33:40 +01:00
parent 44f70d2b52
commit 640beafa8c
2 changed files with 7 additions and 1 deletions

View File

@@ -2460,7 +2460,7 @@ void parser_t::eval_job(tokenizer_t *tok)
if (do_profile)
{
t2 = get_time();
profile_item->cmd = wcsdup(j->command_wcstr());
profile_item->cmd = j->command();
profile_item->skipped=current_block->skip;
}