commit | a9abb20e12253aaf9f6b5266a3118878ef0cebc8 | [log] [tgz] |
---|---|---|
author | Haynes Mathew George <hgeorge@codeaurora.org> | Thu Jun 02 14:13:20 2016 -0700 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Fri Jun 24 12:40:43 2016 -0700 |
tree | 069cd3b7a224408c6d2fa6bf37a960d032aa7653 | |
parent | 1cad714fb6a37159c1f84fa5b5f978c6dc7989bc [diff] |
audio: Fix memory leak Free command object queued with offload_thread_loop when driving instance is unavailable. Change-Id: I310a462ae8efe707658d941e88cb5ea59a9f8550 CRs-Fixed: 1022145
diff --git a/hal/audio_hw.c b/hal/audio_hw.c index 55b0cc7..17f71cc 100644 --- a/hal/audio_hw.c +++ b/hal/audio_hw.c
@@ -1494,6 +1494,7 @@ if (out->compr == NULL) { ALOGE("%s: Compress handle is NULL", __func__); + free(cmd); pthread_cond_signal(&out->cond); continue; }