diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2014-06-06 10:19:48 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-06-09 14:52:37 +0300 |
commit | ec20ba7a84064f82f2dd8b668bae5a67d829febf (patch) | |
tree | d239bdff3dd60028a8beba8db61828f3a2cb5a3d /android/hal-audio.c | |
parent | 49cc4676c6f63152f34b778605ef3463f4f15576 (diff) | |
download | bluez-ec20ba7a84064f82f2dd8b668bae5a67d829febf.tar.gz |
android/hal-audio: Fix memory leak
Fixes clang warning:
...
android/hal-audio.c:484:3: warning: Potential leak of memory pointed to
by 'preset'
...
Diffstat (limited to 'android/hal-audio.c')
-rw-r--r-- | android/hal-audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |