sceneserver sample is fixed for excetpion catch.
memory deallocate with OICFree() in SceneUtil class.
Change-Id: I258e60a504052a59225cac2506553beaf1a1bd29
Signed-off-by: jyong2.kim <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5237
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
{
std::cout << e.what() << std::endl;
}
+ catch(const RCSException& e)
+ {
+ std::cout << e.what() << std::endl;
+ }
std::unique_lock<std::mutex> lck(mtx);
cond.wait_for(lck, std::chrono::seconds(4));
if (size == 0)
{
- delete[] netInfo;
+ OICFree(netInfo);
throw RCSException("Disabled Network");
}
std::string retAddress
= std::string(netInfo[i]->addr) + ":" + std::to_string(netInfo[i]->port);
- delete[] netInfo;
+ OICFree(netInfo);
return retAddress;
}
}
- delete[] netInfo;
+ OICFree(netInfo);
throw RCSException("Not supported Network");
}