summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShuzhen Wang <shuzhenw@codeaurora.org>2014-03-03 23:27:06 -0800
committerAli B <abittin@gmail.com>2018-06-17 19:19:52 +0300
commit35699c063a9b19aeb6ba21febbd2570cd2258b3e (patch)
tree76dc2189496fb5cfa55a750bcab4ae6bbea0c1e2
parentdda8c3c6f5cb469464846eaea54f7d87c44a32ec (diff)
Camera3: Fix memory leak during frame reprocess
The 'streamCbRoutine()' method of the reprocess channel receive a camera super frame that was previously allocated on heap and must release it after exit Bug: 13301331 Change-Id: Ie90f6b4f945f4b7fcc6c46d541871e44c3f6943b Signed-off-by: Daniel Jarai <jaraidaniel@gmail.com>
-rwxr-xr-xcamera/QCamera2/HAL3/QCamera3Channel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/camera/QCamera2/HAL3/QCamera3Channel.cpp b/camera/QCamera2/HAL3/QCamera3Channel.cpp
index 595d277..7a77243 100755
--- a/camera/QCamera2/HAL3/QCamera3Channel.cpp
+++ b/camera/QCamera2/HAL3/QCamera3Channel.cpp
@@ -1956,6 +1956,7 @@ void QCamera3ReprocessChannel::streamCbRoutine(mm_camera_super_buf_t *super_fram
}
*frame = *super_frame;
obj->m_postprocessor.processPPData(frame);
+ free(super_frame);
return;
}