mirror of
https://github.com/curl/curl.git
synced 2026-08-26 22:34:45 +03:00
tool_cfgable: Introduced config_free() function
This commit is contained in:
parent
67d14ab98f
commit
3b929b6a65
3 changed files with 10 additions and 4 deletions
|
|
@ -43,7 +43,7 @@ void init_config(struct Configurable* config)
|
|||
config->proto_redir_present = FALSE;
|
||||
}
|
||||
|
||||
void free_config_fields(struct Configurable *config)
|
||||
static void free_config_fields(struct Configurable *config)
|
||||
{
|
||||
struct getout *urlnode;
|
||||
|
||||
|
|
@ -150,3 +150,9 @@ void free_config_fields(struct Configurable *config)
|
|||
|
||||
Curl_safefree(config->libcurl);
|
||||
}
|
||||
|
||||
void config_free(struct Configurable *config)
|
||||
{
|
||||
free_config_fields(config);
|
||||
free(config);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue