Free control stack correctly
ctl_stack_copy is allocated from malloc. It should be freed by free.
Change-Id: Ib924da20200d91f52f106fe173464d47862759a8
Signed-off-by: Amber Lin <Amber.Lin@amd.com>
[ROCm/ROCR-Runtime commit: 6e113e2634]
This commit is contained in:
@@ -424,9 +424,7 @@ static void free_queue(struct queue *q)
|
||||
q->ctx_save_restore_size,
|
||||
PAGE_SIZE, q->dev_info->asic_family);
|
||||
if (q->ctl_stack_copy)
|
||||
free_exec_aligned_memory(q->ctl_stack_copy,
|
||||
q->ctl_stack_size,
|
||||
PAGE_SIZE, q->dev_info->asic_family);
|
||||
free(q->ctl_stack_copy);
|
||||
|
||||
free_exec_aligned_memory((void *)q, sizeof(*q), PAGE_SIZE, q->dev_info->asic_family);
|
||||
}
|
||||
|
||||
Verwijs in nieuw issue
Block a user