From 08244ecbdabcbae6e610f47111daad7f4265d362 Mon Sep 17 00:00:00 2001 From: liuxueli Date: Mon, 26 Aug 2024 07:27:28 +0000 Subject: Feature: add gtest case --- test/ssl_decoder_test.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/ssl_decoder_test.cpp') diff --git a/test/ssl_decoder_test.cpp b/test/ssl_decoder_test.cpp index 3d46528..bdaf91c 100644 --- a/test/ssl_decoder_test.cpp +++ b/test/ssl_decoder_test.cpp @@ -367,6 +367,11 @@ int32_t ssl_decoder_test_config_load(const char *cfg_path, struct ssl_decoder_te plugin_env->commit_result_enable=1; fprintf(stderr, "[%s:%d] config file: %s key: [decoder.ssl.test.commit_result_enable] value is not yes or no", __FUNCTION__, __LINE__, cfg_path); } + + if(commit_result_enable_val.u.s!=NULL) + { + free(commit_result_enable_val.u.s); + } } toml_free(root); -- cgit v1.2.3