Skip to content

Commit

Permalink
Fixed potential free of uninitialized memory (thanks Simon!)
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 2, 2017
1 parent 56363eb commit 4be0667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/kmsdrm/SDL_kmsdrmvideo.c
Expand Up @@ -96,7 +96,7 @@ KMSDRM_Create(int devindex)
device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice));
if (device == NULL) {
SDL_OutOfMemory();
goto cleanup;
return NULL;
}

/* Initialize internal data */
Expand Down

0 comments on commit 4be0667

Please sign in to comment.