41 lines
1.2 KiB
Diff
41 lines
1.2 KiB
Diff
From 97c54727a85a7046fb93b9c0de5946b7c7c9fad7 Mon Sep 17 00:00:00 2001
|
|
From: ziven <qinzhiben@uniontech.com>
|
|
Date: Wed, 15 Nov 2023 03:31:44 +0000
|
|
Subject: [PATCH 11/11] !50 Remove duplicate free err code lines * Remove
|
|
duplicate free err code lines
|
|
|
|
---
|
|
tests/api_llt.cpp | 4 +---
|
|
1 file changed, 1 insertion(+), 3 deletions(-)
|
|
|
|
diff --git a/tests/api_llt.cpp b/tests/api_llt.cpp
|
|
index 5ea7c09..82d5e9f 100644
|
|
--- a/tests/api_llt.cpp
|
|
+++ b/tests/api_llt.cpp
|
|
@@ -74,7 +74,6 @@ TEST(api_testcases, cni_conflist_from_bytes)
|
|
if (ret != 0) {
|
|
std::cout << "conflist parse failed:" << err << std::endl;
|
|
}
|
|
- free(err);
|
|
std::cout << new_list->bytes << std::endl;
|
|
|
|
api_check_network_config_list(new_list, "default", true);
|
|
@@ -140,7 +139,6 @@ TEST(api_testcases, cni_conflist_from_conf)
|
|
if (ret != 0) {
|
|
std::cout << "conflist parse failed:" << err << std::endl;
|
|
}
|
|
- free(err);
|
|
std::cout << new_list->bytes << std::endl;
|
|
|
|
api_check_network_config_list_from_conf(new_list, "default", true);
|
|
@@ -557,4 +555,4 @@ TEST(api_testcases, free_runtime_conf)
|
|
rc->p_mapping[1] = (struct cni_port_mapping *)calloc(sizeof(struct cni_port_mapping), 1);
|
|
|
|
free_runtime_conf(rc);
|
|
-}
|
|
\ No newline at end of file
|
|
+}
|
|
--
|
|
2.33.0
|
|
|