aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp
diff options
context:
space:
mode:
authorMoritz Fischer <moritz.fischer@ettus.com>2015-10-14 10:27:53 -0700
committerMartin Braun <martin.braun@ettus.com>2015-10-14 11:06:06 -0700
commit3e973aec5b9d5d5e2b3a746843a6fc15fde79cd4 (patch)
tree9b05bc452b0c0300919e36b0cc451183810c85fd /host/lib/usrp
parent98de3794219fd4fe7f2359cb07c3c84ead8e8aec (diff)
downloaduhd-3e973aec5b9d5d5e2b3a746843a6fc15fde79cd4.tar.gz
uhd-3e973aec5b9d5d5e2b3a746843a6fc15fde79cd4.tar.bz2
uhd-3e973aec5b9d5d5e2b3a746843a6fc15fde79cd4.zip
e3xx: sysfs: Drop reference when we're done.
Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
Diffstat (limited to 'host/lib/usrp')
-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);