summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shared-core/radeon_mem.c2
-rw-r--r--shared/radeon_mem.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/shared-core/radeon_mem.c b/shared-core/radeon_mem.c
index d77c60b9..5c07c1af 100644
--- a/shared-core/radeon_mem.c
+++ b/shared-core/radeon_mem.c
@@ -118,7 +118,7 @@ static void free_block( struct mem_block *p )
p->size += q->size;
p->next = q->next;
p->next->prev = p;
- DRM_FREE(p);
+ DRM_FREE(q);
}
if (p->prev->pid == 0) {
diff --git a/shared/radeon_mem.c b/shared/radeon_mem.c
index d77c60b9..5c07c1af 100644
--- a/shared/radeon_mem.c
+++ b/shared/radeon_mem.c
@@ -118,7 +118,7 @@ static void free_block( struct mem_block *p )
p->size += q->size;
p->next = q->next;
p->next->prev = p;
- DRM_FREE(p);
+ DRM_FREE(q);
}
if (p->prev->pid == 0) {