android/hal-audio: Fix memory leak

Fixes clang warning:
...
android/hal-audio.c:484:3: warning: Potential leak of memory pointed to
by 'preset'
...
This commit is contained in:
Andrei Emeltchenko 2014-06-06 10:19:48 +03:00 committed by Luiz Augusto von Dentz
parent 49cc4676c6
commit ec20ba7a84

View File

@ -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;