summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTae-Young Chung <ty83.chung@samsung.com>2016-06-22 16:45:02 +0900
committerTae-Young Chung <ty83.chung@samsung.com>2016-06-22 16:45:05 +0900
commit927d276fcc5798ccb07cd9c3d4e540d49f3a4cfd (patch)
tree1e335d356b719cbdaade0c37040ee6477a3dc19a
parent2bb6f5d7543da6c4af7ca4df035ef3de120112e1 (diff)
downloadmediavision-927d276fcc5798ccb07cd9c3d4e540d49f3a4cfd.tar.gz
mediavision-927d276fcc5798ccb07cd9c3d4e540d49f3a4cfd.tar.bz2
mediavision-927d276fcc5798ccb07cd9c3d4e540d49f3a4cfd.zip
[Fixed bug] Fixed HEAP incompatible delete/free() usagesubmit/tizen/20160623.063229accepted/tizen/common/20160627.191456
Change-Id: Ibb97fb9fc131f0dd84084aafbdb0d47032cfcc97 Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
-rw-r--r--mv_surveillance/surveillance/src/EventTriggerPersonRecognition.cpp12
-rw-r--r--packaging/capi-media-vision.spec2
2 files changed, 9 insertions, 5 deletions
diff --git a/mv_surveillance/surveillance/src/EventTriggerPersonRecognition.cpp b/mv_surveillance/surveillance/src/EventTriggerPersonRecognition.cpp
index f99c78a6..7fff0945 100644
--- a/mv_surveillance/surveillance/src/EventTriggerPersonRecognition.cpp
+++ b/mv_surveillance/surveillance/src/EventTriggerPersonRecognition.cpp
@@ -138,8 +138,10 @@ int EventTriggerPersonRecognition::parseEngineConfig(mv_engine_config_h engineCo
&modelPath);
if (error != MEDIA_VISION_ERROR_NONE) {
- if (modelPath != NULL)
- delete[] modelPath;
+ if (modelPath != NULL) {
+ free(modelPath);
+ modelPath = NULL;
+ }
LOGE("Getting recognition model from engine configuration failed.");
@@ -154,8 +156,10 @@ int EventTriggerPersonRecognition::parseEngineConfig(mv_engine_config_h engineCo
LOGE("Loading recognition model from file %s failed.",
modelPath);
- if (modelPath != NULL)
- delete[] modelPath;
+ if (modelPath != NULL) {
+ free(modelPath);
+ modelPath = NULL;
+ }
return error;
}
diff --git a/packaging/capi-media-vision.spec b/packaging/capi-media-vision.spec
index d66161e6..c0ce93a7 100644
--- a/packaging/capi-media-vision.spec
+++ b/packaging/capi-media-vision.spec
@@ -1,7 +1,7 @@
Name: capi-media-vision
Summary: Media Vision library for Tizen Native API
Version: 0.3.20
-Release: 1
+Release: 2
Group: Multimedia/Framework
License: Apache-2.0 and BSD-2.0
Source0: %{name}-%{version}.tar.gz