Skip to content

Commit 5b4aaa4

Browse files
committed
fast-get: fix heap when freeing the buffer
Use the same heap to free the buffer as the one, used to allocate it. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
1 parent af60c25 commit 5b4aaa4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

zephyr/lib/fast-get.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ const void *fast_get(struct k_heap *heap, const void *dram_ptr, size_t size)
243243

244244
if (err < 0) {
245245
LOG_ERR("failed to grant access err=%d", err);
246-
sof_heap_free(NULL, ret);
246+
sof_heap_free(heap, ret);
247247
ret = NULL;
248248
goto out;
249249
}

0 commit comments

Comments
 (0)