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

Commit 6314de48 authored by Haynes Mathew George's avatar Haynes Mathew George Committed by android-build-merger
Browse files

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

am: b85966c0

Change-Id: Ieb9c82aa927d06a7e7d621001c1a7654085c6002
parents 95bf75d9 b85966c0
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;
            }