summaryrefslogtreecommitdiff
path: root/camera
diff options
context:
space:
mode:
authorManoj Gupta <manojgupta@google.com>2017-08-22 16:21:15 -0700
committerManoj Gupta <manojgupta@google.com>2017-08-22 16:26:21 -0700
commit5a5c9aa9517071d5b24341f90e9f25d8f708743b (patch)
tree3118cafd1c8a6466eaafa0bdd3b5d24ca5cf8750 /camera
parent2ab9f9d299220dbe3c96ce17d212e6f83df4bc94 (diff)
downloadmarlin-5a5c9aa9517071d5b24341f90e9f25d8f708743b.tar.gz
Fix clang static analyzer warnings.
Fix the following warning: device/google/marlin/camera/QCamera2/HAL3/QCamera3PostProc.cpp:2365:9: warning: Potential leak of memory pointed to by 'exif' [clang-analyzer-cplusplus.NewDeleteLeaks] Bug: b/27101951 Test:Warning is gone. Change-Id: Ifc7f5f538ed303ccb1e309d8664b23c49e916b0d
Diffstat (limited to 'camera')
-rw-r--r--camera/QCamera2/HAL3/QCamera3PostProc.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/camera/QCamera2/HAL3/QCamera3PostProc.cpp b/camera/QCamera2/HAL3/QCamera3PostProc.cpp
index 9934dea3..a43bc47c 100644
--- a/camera/QCamera2/HAL3/QCamera3PostProc.cpp
+++ b/camera/QCamera2/HAL3/QCamera3PostProc.cpp
@@ -2357,6 +2357,7 @@ QCamera3Exif *QCamera3PostProcessor::getExifData(metadata_buffer_t *metadata,
hal_obj = (QCamera3HardwareInterface*)m_parent->mUserData;
} else {
LOGE("m_parent is NULL, Error");
+ delete exif;
return NULL;
}