Skip to content

Commit a37fda2

Browse files
committed
dp: clear memory domain when freeing
Recently a new function has been added to Zephyr to safely remove memory domains. Use it when releasing domains in SOF DP. Signed-off-by: Guennadi Liakhovetski <[email protected]>
1 parent 2aec30f commit a37fda2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/schedule/zephyr_dp_schedule_application.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ static void scheduler_dp_domain_free(struct task_dp_pdata *pdata)
387387

388388
/* All partitions removed, the domain can be freed now */
389389
pmod->mdom = NULL;
390+
k_mem_domain_deinit(mdom);
390391
objpool_free(&dp_mdom_head, mdom);
391392
}
392393

0 commit comments

Comments
 (0)