mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-31 14:29:14 +08:00
Fixed potential free of uninitialized memory (thanks Simon!)
This commit is contained in:
@@ -96,7 +96,7 @@ KMSDRM_Create(int devindex)
|
|||||||
device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice));
|
device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice));
|
||||||
if (device == NULL) {
|
if (device == NULL) {
|
||||||
SDL_OutOfMemory();
|
SDL_OutOfMemory();
|
||||||
goto cleanup;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initialize internal data */
|
/* Initialize internal data */
|
||||||
|
|||||||
Reference in New Issue
Block a user