aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
Diffstat (limited to 'host')
-rw-r--r--host/lib/usrp/e300/e300_sysfs_hooks.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/host/lib/usrp/e300/e300_sysfs_hooks.cpp b/host/lib/usrp/e300/e300_sysfs_hooks.cpp
index fdeaf0858..ee2ac21d7 100644
--- a/host/lib/usrp/e300/e300_sysfs_hooks.cpp
+++ b/host/lib/usrp/e300/e300_sysfs_hooks.cpp
@@ -67,6 +67,8 @@ std::string e300_get_sysfs_attr(const std::string &node, const std::string &attr
retstring = udev_device_get_sysattr_value(dev, attr.c_str());
if (retstring.size())
break;
+
+ udev_device_unref(dev);
}
udev_enumerate_unref(enumerate);