aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/e300
diff options
context:
space:
mode:
authorAshish Chaudhari <ashish@ettus.com>2015-10-16 12:31:20 -0700
committerAshish Chaudhari <ashish@ettus.com>2015-10-16 12:31:20 -0700
commit052efa19109a2cb3346788dd63dfb23e07146693 (patch)
treed45b1d9209dd445f3cb686add3882fcd78d42701 /host/lib/usrp/e300
parent626558e35e98b620d77e48c1046608c013ca80f7 (diff)
parent3e973aec5b9d5d5e2b3a746843a6fc15fde79cd4 (diff)
downloaduhd-052efa19109a2cb3346788dd63dfb23e07146693.tar.gz
uhd-052efa19109a2cb3346788dd63dfb23e07146693.tar.bz2
uhd-052efa19109a2cb3346788dd63dfb23e07146693.zip
Merge branch 'maint'
Diffstat (limited to 'host/lib/usrp/e300')
-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);