From f9006bdccb33dc1656c3ffca38043e1b8c0b6c88 Mon Sep 17 00:00:00 2001 From: "hyunuk.tak" Date: Thu, 17 Sep 2020 12:50:48 +0900 Subject: [PATCH] Fix resource leak Change-Id: I3c31a4cb77b7cbe7b1a8ab5a19471e029b715a82 Signed-off-by: hyunuk.tak --- test/connection_test.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/connection_test.c b/test/connection_test.c index 3667d4e..2e76e9a 100755 --- a/test/connection_test.c +++ b/test/connection_test.c @@ -2878,6 +2878,7 @@ int test_get_eapol_info(void) return -1; } else { printf("identity: %s\n", str); + g_free(str); } if (type == CONNECTION_ETHERNET_EAP_TYPE_MD5) @@ -2890,6 +2891,7 @@ int test_get_eapol_info(void) return -1; } else { printf("anonymous_identity: %s\n", str); + g_free(str); } } @@ -2898,6 +2900,7 @@ int test_get_eapol_info(void) return -1; } else { printf("ca_cert_file: %s\n", str); + g_free(str); } if (type == CONNECTION_ETHERNET_EAP_TYPE_TLS) { @@ -2906,6 +2909,7 @@ int test_get_eapol_info(void) return -1; } else { printf("client_cert_file: %s\n", str); + g_free(str); } if (connection_profile_get_ethernet_eap_private_key_file(profile, &str) != CONNECTION_ERROR_NONE) { @@ -2913,6 +2917,7 @@ int test_get_eapol_info(void) return -1; } else { printf("private_key_file: %s\n", str); + g_free(str); } } @@ -2941,6 +2946,7 @@ int test_get_eapol_info(void) return -1; } else { printf("pac_file: %s\n", str); + g_free(str); } } -- 2.7.4