From: Aaron Watry Date: Wed, 6 Nov 2013 22:49:24 +0000 (-0600) Subject: gallium/pipe_loader: un-reference udev resources when we're done with them. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=598f61ba28bcfd220104e18e89973768babeaac3;p=mesa.git gallium/pipe_loader: un-reference udev resources when we're done with them. Reviewed-by: Tom Stellard CC: "10.0" --- diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c index 339d7bf10b6..927fb2469c4 100644 --- a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c +++ b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c @@ -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: