svga: Fix memory leak in vmw_screen_ioctl.c
authorVinson Lee <vlee@vmware.com>
Sun, 22 Nov 2009 06:20:07 +0000 (01:20 -0500)
committerVinson Lee <vlee@vmware.com>
Sun, 22 Nov 2009 06:20:07 +0000 (01:20 -0500)
src/gallium/winsys/drm/vmware/core/vmw_screen_ioctl.c

index b3515732a21d4db25ccda68bf5e661f89dbd532a..51e455f925406878068e6363443514b2e521913d 100644 (file)
@@ -331,6 +331,7 @@ vmw_ioctl_region_create(struct vmw_winsys_screen *vws, uint32_t size)
    return region;
 
  out_err1:
+   FREE(region);
    return NULL;
 }