Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b85966c0 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "audio: close dlopen'ed library on error" into oc-mr1-dev

parents a226338f ee022dcb
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -118,6 +118,8 @@ int audio_extn_perf_lock_init(void)
                                                       "perf_lock_acq");
            if (perf_lock_acq == NULL) {
                ALOGE("%s: Perf lock Acquire NULL", __func__);
                dlclose(qcopt_handle);
                qcopt_handle = NULL;
                ret = -EINVAL;
                goto err;
            }
@@ -125,6 +127,8 @@ int audio_extn_perf_lock_init(void)
                                                       "perf_lock_rel");
            if (perf_lock_rel == NULL) {
                ALOGE("%s: Perf lock Release NULL", __func__);
                dlclose(qcopt_handle);
                qcopt_handle = NULL;
                ret = -EINVAL;
                goto err;
            }