Commit: 014471cae859a34591dd1f768712aaf14788ebd2
Parent: d8beaba79f149204ba9b1c8e845816a2fd1ba9ef
Author: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2014-02-02 17:43:52
Tree: 08741f143769e2c18809353cc6da609d5e7bc1d2

android/hal-audio: Do not allocate memory if fd < 0 Fixes memory leak when returning bad fd we still allocate memory which is not freed in the caller function audio_open_output_stream().

Diffstat

M android/hal-audio.c | 4 +++-

1 files changed, 3 insertions(+), 1 deletions(-)

View Full Diff | Patch