Merge "Invoking dlclose in error case"
This commit is contained in:
commit
80b5ce40d7
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