mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
Coverity #650: Fix a memory leak when near OOM.
This commit is contained in:
parent
75f81ad5f9
commit
1ee92f984b
1 changed files with 1 additions and 0 deletions
|
|
@ -1213,6 +1213,7 @@ adjust2DRatio (GLcontext *ctx,
|
|||
}
|
||||
tempImage = MALLOC(newWidth * newHeight * rawBytes);
|
||||
if (!tempImage) {
|
||||
FREE(rawImage);
|
||||
return GL_FALSE;
|
||||
}
|
||||
/* unpack image, apply transfer ops and store in rawImage */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue