OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ee92f9
)
Coverity #567: Fix a memory leak on a failure path.
author
Adam Jackson
<ajax@freedesktop.org>
Sun, 2 Apr 2006 23:17:49 +0000
(23:17 +0000)
committer
Adam Jackson
<ajax@freedesktop.org>
Sun, 2 Apr 2006 23:17:49 +0000
(23:17 +0000)
src/mesa/drivers/dri/common/texmem.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/common/texmem.c
b/src/mesa/drivers/dri/common/texmem.c
index
41316de
..
b0e8c4c
100644
(file)
--- 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;