]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
If for some reason RandR12GetInfo failed to return RandR12Info,
authorOliver Kurth <okurth@vmware.com>
Fri, 29 Sep 2017 19:52:44 +0000 (12:52 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 29 Sep 2017 19:52:44 +0000 (12:52 -0700)
it should not follow the cleanup path to free it. Instead it
should return FALSE.

open-vm-tools/services/plugins/resolutionSet/resolutionRandR12.c

index 84b788b7e7816df901d8372788429e427349183a..f9221254ae6e9a7d28ea220b10f2e79481d454f7 100644 (file)
@@ -1000,7 +1000,7 @@ RandR12_SetTopology(Display *dpy,           // IN/OUT: The display connection
    info = RandR12GetInfo(dpy, rootWin);
    if (!info) {
       g_warning("%s: Setup info struct failed.\n", __func__);
-      goto out_ungrab;
+      return FALSE;
    }
 
    RandR12GetDpi(dpy, screen, info);