Fix memory leak 61/280961/1
authorKwanghoon Son <k.son@samsung.com>
Wed, 7 Sep 2022 07:10:27 +0000 (03:10 -0400)
committerKwanghoon Son <k.son@samsung.com>
Wed, 7 Sep 2022 07:10:27 +0000 (03:10 -0400)
[Version] : 0.23.24-0
[Issue type] : bug fix

mv_engine_config_get_string_attribute allocate memory inside of function.

Change-Id: Ia511b42a45a2b04ee818396bba0a8dee356331bc
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
mv_machine_learning/inference/src/mv_inference_open.cpp
packaging/capi-media-vision.spec

index 28a052e..741a00c 100644 (file)
@@ -201,7 +201,7 @@ static int configure_model_open(Inference *pInfer, mv_engine_config_h engine_con
 
        if (std::string(modelMetaFilePath).empty()) {
                LOGW("Skip ParseMetadata and run without Metadata");
-               goto release_model_user_file_path;
+               goto release_model_meta_file_path;
        }
 
        if (!IsJsonFile(std::string(modelMetaFilePath))) {
index ba8863e..b63120d 100644 (file)
@@ -1,6 +1,6 @@
 Name:        capi-media-vision
 Summary:     Media Vision library for Tizen Native API
-Version:     0.23.23
+Version:     0.23.24
 Release:     0
 Group:       Multimedia/Framework
 License:     Apache-2.0 and BSD-3-Clause