aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard_manager.cpp
diff options
context:
space:
mode:
authorAshish Chaudhari <ashish@ettus.com>2016-02-17 16:21:46 -0800
committerAshish Chaudhari <ashish@ettus.com>2016-02-18 09:07:07 -0800
commitc37ab6091c48b3486b7af745f0a61cdf7db9fc42 (patch)
tree0db99931d78a8568f2238483c046b52ebf02b189 /host/lib/usrp/dboard_manager.cpp
parent60a716fae94d89add78ee2b339582b19dda0b8c2 (diff)
downloaduhd-c37ab6091c48b3486b7af745f0a61cdf7db9fc42.tar.gz
uhd-c37ab6091c48b3486b7af745f0a61cdf7db9fc42.tar.bz2
uhd-c37ab6091c48b3486b7af745f0a61cdf7db9fc42.zip
db_manager: Cleaned up iface pointer in subtree after error
Diffstat (limited to 'host/lib/usrp/dboard_manager.cpp')
-rw-r--r--host/lib/usrp/dboard_manager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/host/lib/usrp/dboard_manager.cpp b/host/lib/usrp/dboard_manager.cpp
index f904758c5..3a0101b17 100644
--- a/host/lib/usrp/dboard_manager.cpp
+++ b/host/lib/usrp/dboard_manager.cpp
@@ -234,6 +234,7 @@ dboard_manager_impl::dboard_manager_impl(
//clean up the stuff added by the call above
if (subtree->exists("rx_frontends")) subtree->remove("rx_frontends");
if (subtree->exists("tx_frontends")) subtree->remove("tx_frontends");
+ if (subtree->exists("iface")) subtree->remove("iface");
this->init(dboard_id_t::none(), dboard_id_t::none(), subtree);
}
}