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

Commit d539d524 authored by Haynes Mathew George's avatar Haynes Mathew George Committed by Garmond Leung
Browse files

audio: close dlopen'ed library on error

Close dlopen'ed perf library on error

Change-Id: I70e4cd95e97ffac116f83d1949f4dbe78d8f944d
CRs-Fixed: 2047997
parent c8bbc8db
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1161,6 +1161,7 @@ int audio_extn_perf_lock_init(void)
                                                       "perf_lock_acq");
            if (perf_lock_acq == NULL) {
                ALOGE("%s: Perf lock Acquire NULL \n", __func__);
                dlclose(qcopt_handle);
                ret = -EINVAL;
                goto err;
            }
@@ -1168,6 +1169,7 @@ int audio_extn_perf_lock_init(void)
                                                       "perf_lock_rel");
            if (perf_lock_rel == NULL) {
                ALOGE("%s: Perf lock Release NULL \n", __func__);
                dlclose(qcopt_handle);
                ret = -EINVAL;
                goto err;
            }