summaryrefslogtreecommitdiff
path: root/src/tool_parsecfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tool_parsecfg.c')
-rw-r--r--src/tool_parsecfg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool_parsecfg.c b/src/tool_parsecfg.c
index 208897f48..a9057ea31 100644
--- a/src/tool_parsecfg.c
+++ b/src/tool_parsecfg.c
@@ -98,7 +98,7 @@ int parseconfig(const char *filename, struct GlobalConfig *global)
char prefix = '.';
do {
/* if it was allocated in a previous attempt */
- free(pathalloc);
+ curl_free(pathalloc);
/* check for .curlrc then _curlrc in the home dir */
pathalloc = curl_maprintf("%s%s%ccurlrc", home, DIR_CHAR, prefix);
if(!pathalloc) {
@@ -287,7 +287,7 @@ int parseconfig(const char *filename, struct GlobalConfig *global)
else
rc = 1; /* couldn't open the file */
- free(pathalloc);
+ curl_free(pathalloc);
return rc;
}