aboutsummaryrefslogtreecommitdiff
path: root/src/tool_cfgable.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-02-07 19:29:46 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-02-07 21:22:46 +0000
commit3b929b6a6589a678da43e1a44bb02a70b50deae3 (patch)
treea560a59510a40d77a65c5701fc59a81de08ab7ba /src/tool_cfgable.c
parent67d14ab98f8b819ee6f5e6a4a2770d311c6bf13b (diff)
tool_cfgable: Introduced config_free() function
Diffstat (limited to 'src/tool_cfgable.c')
-rw-r--r--src/tool_cfgable.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/tool_cfgable.c b/src/tool_cfgable.c
index c47978612..9ef3f87b5 100644
--- a/src/tool_cfgable.c
+++ b/src/tool_cfgable.c
@@ -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);
+}