diff --git a/src/gallium/drivers/panfrost/pan_job.c b/src/gallium/drivers/panfrost/pan_job.c index 208e287740a..d1ce9c0ec33 100644 --- a/src/gallium/drivers/panfrost/pan_job.c +++ b/src/gallium/drivers/panfrost/pan_job.c @@ -380,8 +380,10 @@ panfrost_gc_fences(struct panfrost_context *ctx) panfrost_bo_access_gc_fences(ctx, access, entry->key); if (!util_dynarray_num_elements(&access->readers, struct panfrost_batch_fence *) && - !access->writer) + !access->writer) { + ralloc_free(access); _mesa_hash_table_remove(ctx->accessed_bos, entry); + } } }