mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 03:51:14 -03:00
fix a memory leak in profiling, add a profiling test
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user