mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
Coverity #567: Fix a memory leak on a failure path.
This commit is contained in:
parent
1ee92f984b
commit
b3208c2de9
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue