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

Commit ee022dcb authored by Haynes Mathew George's avatar Haynes Mathew George Committed by David Lin
Browse files

audio: close dlopen'ed library on error

Close dlopen'ed perf library on error

Bug: 64764754
Change-Id: I70e4cd95e97ffac116f83d1949f4dbe78d8f944d
CRs-Fixed: 2047997
parent d8578f13
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;
            }