gallium/pipe_loader: un-reference udev resources when we're done with them.
authorAaron Watry <awatry@gmail.com>
Wed, 6 Nov 2013 22:49:24 +0000 (16:49 -0600)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 15 Nov 2013 17:16:49 +0000 (09:16 -0800)
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
CC: "10.0" <mesa-stable@lists.freedesktop.org>
src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c

index 339d7bf10b67bd86533dd06c136e8a7edd180a69..927fb2469c4ee46d9ad6071b488c79584bf57501 100644 (file)
@@ -88,6 +88,9 @@ find_drm_pci_id(struct pipe_loader_drm_device *ddev)
               &ddev->base.u.pci.chip_id) != 2)
       goto fail;
 
+   udev_device_unref(device);
+   udev_unref(udev);
+
    return TRUE;
 
   fail: