1. Re-generate c client to merge PR #7467 of openapi-generator

2. Remove the duplicated definition of "clear_and_free_string_list" after code merge
This commit is contained in:
Hui Yu
2020-09-26 13:08:37 +08:00
parent c57bb441ba
commit 84c76b5d49
6 changed files with 27 additions and 40 deletions

View File

@@ -106,18 +106,3 @@ void clear_and_free_string_pair_list(list_t * list)
}
list_free(list);
}
void clear_and_free_string_list(list_t * list)
{
if (!list) {
return;
}
listEntry_t *listEntry = NULL;
list_ForEach(listEntry, list) {
char *list_item = listEntry->data;
free(list_item);
list_item = NULL;
}
list_free(list);
}

View File

@@ -26,7 +26,7 @@ extern "C" {
* None
*
*/
char *kubeconfig_mk_cert_key_tempfile(const char *data);
char *kubeconfig_mk_cert_key_tempfile(const char *data);
/*
* unsetSslConfig
@@ -48,7 +48,7 @@ extern "C" {
* None
*
*/
void unsetSslConfig(sslConfig_t * sslConfig);
void unsetSslConfig(sslConfig_t * sslConfig);
/*
* clear_and_free_string_pair_list
@@ -70,29 +70,7 @@ extern "C" {
* None
*
*/
void clear_and_free_string_pair_list(list_t * list);
/*
* clear_and_free_string_list
*
* Description:
*
* clear the content and free the memory for a string list
*
* Return:
*
* None
*
* Parameter:
*
* IN:
* list: The string list needs to clear and free
*
* OUT:
* None
*
*/
void clear_and_free_string_list(list_t * list);
void clear_and_free_string_pair_list(list_t * list);
#ifdef __cplusplus
}