Fixed potential free of uninitialized memory (thanks Simon!)
authorSam Lantinga <slouken@libsdl.org>
Wed, 02 Aug 2017 10:24:47 -0700
changeset 111769397a2d41d6b
parent 11175 cbc6a8a5b701
child 11177 393fa47cb702
Fixed potential free of uninitialized memory (thanks Simon!)
src/video/kmsdrm/SDL_kmsdrmvideo.c
     1.1 --- a/src/video/kmsdrm/SDL_kmsdrmvideo.c	Wed Aug 02 10:22:48 2017 -0700
     1.2 +++ b/src/video/kmsdrm/SDL_kmsdrmvideo.c	Wed Aug 02 10:24:47 2017 -0700
     1.3 @@ -96,7 +96,7 @@
     1.4      device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice));
     1.5      if (device == NULL) {
     1.6          SDL_OutOfMemory();
     1.7 -        goto cleanup;
     1.8 +        return NULL;
     1.9      }
    1.10  
    1.11      /* Initialize internal data */