diff options
author | Akwasi Boateng <akwasi.boateng@ti.com> | 2011-10-14 16:51:33 +0300 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2011-12-01 10:39:51 -0800 |
commit | ef3c5f377390ed049b9e1472461a7027241f0d60 (patch) | |
tree | 5ebfe60b0348876cbc2c76b6458b176d8447a018 /camera/inc | |
parent | a900b05863ab8ff7daaed07fb11871184806c3b6 (diff) | |
download | hardware_ti_omap4-ef3c5f377390ed049b9e1472461a7027241f0d60.zip hardware_ti_omap4-ef3c5f377390ed049b9e1472461a7027241f0d60.tar.gz hardware_ti_omap4-ef3c5f377390ed049b9e1472461a7027241f0d60.tar.bz2 |
CameraHAL: Removes a possible resource leak inside MemoryManager
- 'mIonFd' doesn't get properly closed in each error case
involving buffer allocation
Signed-off-by: Emilian Peev <epeev@mm-sol.com>
Signed-off-by: Daniel Levin <x0155538@ti.com>
Signed-off-by: Jean Johnson <a0271255@ti.com>
Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
Change-Id: Ib893e832712e3ea4a3711153453f7a2aa873d0ee
Diffstat (limited to 'camera/inc')
-rw-r--r-- | camera/inc/CameraHal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/camera/inc/CameraHal.h b/camera/inc/CameraHal.h index e34f4df..6c3da0a 100644 --- a/camera/inc/CameraHal.h +++ b/camera/inc/CameraHal.h @@ -678,7 +678,7 @@ private: class MemoryManager : public BufferProvider, public virtual RefBase { public: - MemoryManager():mIonFd(0){ } + MemoryManager():mIonFd(-1){ } ///Initializes the memory manager creates any resources required status_t initialize() { return NO_ERROR; } |