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");
|
dlsym(handle, "LocNetIfaceAgps_getAgpsCbInfo");
|
||||||
if (getAgpsCbInfo == nullptr) {
|
if (getAgpsCbInfo == nullptr) {
|
||||||
LOC_LOGE("%s]: Failed to get method LocNetIfaceAgps_getStatusCb", __func__);
|
LOC_LOGE("%s]: Failed to get method LocNetIfaceAgps_getStatusCb", __func__);
|
||||||
|
dlclose(handle);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3723,6 +3724,7 @@ void GnssAdapter::initDefaultAgps() {
|
||||||
|
|
||||||
if (cbInfo.statusV4Cb == nullptr) {
|
if (cbInfo.statusV4Cb == nullptr) {
|
||||||
LOC_LOGE("%s]: statusV4Cb is nullptr!", __func__);
|
LOC_LOGE("%s]: statusV4Cb is nullptr!", __func__);
|
||||||
|
dlclose(handle);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue