From ec20ba7a84064f82f2dd8b668bae5a67d829febf Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Fri, 6 Jun 2014 10:19:48 +0300 Subject: [PATCH] android/hal-audio: Fix memory leak Fixes clang warning: ... android/hal-audio.c:484:3: warning: Potential leak of memory pointed to by 'preset' ... --- android/hal-audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/hal-audio.c b/android/hal-audio.c index e9a9c5405..1a3d3ae4e 100644 --- a/android/hal-audio.c +++ b/android/hal-audio.c @@ -504,7 +504,7 @@ static bool open_endpoint(struct audio_endpoint **epp, if (!ep) { error("Cound not find opened endpoint"); - return false; + goto failed; } *epp = ep;