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

Commit 172e660d authored by Haynes Mathew George's avatar Haynes Mathew George Committed by Gerrit - the friendly Code Review server
Browse files

audio: Fix memory leak

Free command object queued with offload_thread_loop
when driving instance is unavailable.

Change-Id: I310a462ae8efe707658d941e88cb5ea59a9f8550
CRs-Fixed: 1022145
parent b6711c26
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1272,6 +1272,7 @@ static void *offload_thread_loop(void *context)

        if (out->compr == NULL) {
            ALOGE("%s: Compress handle is NULL", __func__);
            free(cmd);
            pthread_cond_signal(&out->cond);
            continue;
        }