Skip to content
Permalink
Browse files

Fixed potential free of uninitialized memory (thanks Simon!)

  • Loading branch information
slouken committed Aug 2, 2017
1 parent 56363eb commit 4be066707d9b420248597c2c6d75fa9300a6f1d8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/kmsdrm/SDL_kmsdrmvideo.c
@@ -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 */

0 comments on commit 4be0667

Please sign in to comment.