diff options
author | Adam Jackson <ajax@freedesktop.org> | 2006-04-02 23:17:49 +0000 |
---|---|---|
committer | Adam Jackson <ajax@freedesktop.org> | 2006-04-02 23:17:49 +0000 |
commit | b3208c2de9ba2ba5c32af1fc6b11fec9418256ed (patch) | |
tree | b035d30796f9c0e63be9a79170d4e3dce74815ed /src/mesa/drivers/dri/common | |
parent | 1ee92f984b31b1ba2653f51bf739a2e03f386c63 (diff) |
Coverity #567: Fix a memory leak on a failure path.
Diffstat (limited to 'src/mesa/drivers/dri/common')
-rw-r--r-- | src/mesa/drivers/dri/common/texmem.c | 1 |
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; |