Invoking dlclose in error case
Invoking dlclose for loc_net_iface library dlopen call in error case. Change-Id: Ib8d4b05904214ebaa83608309679bc055bd7abe5 CRs-Fixed: 2347372
This commit is contained in:
parent
0056afe9bd
commit
b00c1c26c9
1 changed files with 2 additions and 0 deletions
|
@ -3716,6 +3716,7 @@ void GnssAdapter::initDefaultAgps() {
|
|||
dlsym(handle, "LocNetIfaceAgps_getAgpsCbInfo");
|
||||
if (getAgpsCbInfo == nullptr) {
|
||||
LOC_LOGE("%s]: Failed to get method LocNetIfaceAgps_getStatusCb", __func__);
|
||||
dlclose(handle);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -3723,6 +3724,7 @@ void GnssAdapter::initDefaultAgps() {
|
|||
|
||||
if (cbInfo.statusV4Cb == nullptr) {
|
||||
LOC_LOGE("%s]: statusV4Cb is nullptr!", __func__);
|
||||
dlclose(handle);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue