From c37ab6091c48b3486b7af745f0a61cdf7db9fc42 Mon Sep 17 00:00:00 2001 From: Ashish Chaudhari Date: Wed, 17 Feb 2016 16:21:46 -0800 Subject: db_manager: Cleaned up iface pointer in subtree after error --- host/lib/usrp/dboard_manager.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'host/lib/usrp/dboard_manager.cpp') 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); } } -- cgit v1.2.3