summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorAaron Watry <awatry@gmail.com>2013-11-06 16:49:24 -0600
committerIan Romanick <ian.d.romanick@intel.com>2013-11-15 13:39:41 -0800
commit11982ca08dd8ef5111bf2155e52c3de8d2840431 (patch)
tree3c714653cf001e9efbdf6b783acb5b0fabbc23a4 /src/gallium
parent713966c82f8051575d53c8da918ec9365b087dda (diff)
gallium/pipe_loader: un-reference udev resources when we're done with them.
Reviewed-by: Tom Stellard <thomas.stellard@amd.com> CC: "10.0" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 598f61ba28bcfd220104e18e89973768babeaac3)
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c3
1 files changed, 3 insertions, 0 deletions
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: