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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user