mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-16 08:44:38 +08:00
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:
parent
49cc4676c6
commit
ec20ba7a84
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user