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");
|
||||
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