commit | 0c2d878295c5bd29dee6d9d1fe8d0febbd884cbd | [log] [tgz] |
---|---|---|
author | Shuzhen Wang <shuzhenw@codeaurora.org> | Mon Mar 03 23:27:06 2014 -0800 |
committer | Vineeta Srivastava <vsrivastava@google.com> | Thu Apr 10 20:48:44 2014 +0000 |
tree | 31f23eccce27a3921215f1d29f54a5782c410053 | |
parent | 6c7b41439f7cb210446d265d474f20842e0672a1 [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
diff --git a/camera/QCamera2/HAL3/QCamera3Channel.cpp b/camera/QCamera2/HAL3/QCamera3Channel.cpp index fcfed09..589d616 100755 --- a/camera/QCamera2/HAL3/QCamera3Channel.cpp +++ b/camera/QCamera2/HAL3/QCamera3Channel.cpp
@@ -2162,6 +2162,7 @@ } *frame = *super_frame; obj->m_postprocessor.processPPData(frame); + free(super_frame); return; }