summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorAdam Jackson <ajax@freedesktop.org>2006-04-02 23:17:49 +0000
committerAdam Jackson <ajax@freedesktop.org>2006-04-02 23:17:49 +0000
commitb3208c2de9ba2ba5c32af1fc6b11fec9418256ed (patch)
treeb035d30796f9c0e63be9a79170d4e3dce74815ed /src/mesa
parent1ee92f984b31b1ba2653f51bf739a2e03f386c63 (diff)
Coverity #567: Fix a memory leak on a failure path.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/common/texmem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/texmem.c b/src/mesa/drivers/dri/common/texmem.c
index 41316de1fc..b0e8c4c1c2 100644
--- a/src/mesa/drivers/dri/common/texmem.c
+++ b/src/mesa/drivers/dri/common/texmem.c
@@ -410,6 +410,7 @@ static void driTexturesGone( driTexHeap * heap, int offset, int size,
fprintf( stderr, "Couldn't alloc placeholder: heap %u sz %x ofs %x\n", heap->heapId,
(int)size, (int)offset );
mmDumpMemInfo( heap->memory_heap );
+ FREE(t);
return;
}
t->heap = heap;