From: chaehee.hong Date: Tue, 4 Feb 2025 10:23:29 +0000 (+0900) Subject: Fix memory leak X-Git-Tag: accepted/tizen/unified/20250207.071328^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen;p=platform%2Fcore%2Fapi%2Fvine.git Fix memory leak Change-Id: I8d7ce54627454939435aabbf13539638739c211c --- diff --git a/src/vine-data-path.cpp b/src/vine-data-path.cpp index 795f414..41e0b25 100755 --- a/src/vine-data-path.cpp +++ b/src/vine-data-path.cpp @@ -822,6 +822,7 @@ int vine_data_path_open(vine_data_path_method_e method, ret = dp->plugin_fn->set_host_name(dp->plugin_handle, host_name); if (ret != VINE_DATA_PATH_ERROR_NONE) { vine_data_path_destroy(dp); + _destroy_security_info(&ssl); return __convert_data_path_error_to_vine_error((vine_data_path_error)ret); } } @@ -880,6 +881,7 @@ int vine_data_path_connect(vine_data_path_method_e method, ret = dp->plugin_fn->set_host_name(dp->plugin_handle, host_name); if (ret != VINE_DATA_PATH_ERROR_NONE) { vine_data_path_destroy(dp); + _destroy_security_info(&ssl); return __convert_data_path_error_to_vine_error((vine_data_path_error)ret); } }