diff options
Diffstat (limited to 'src/tool_findfile.c')
-rw-r--r-- | src/tool_findfile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tool_findfile.c b/src/tool_findfile.c index 766586f69..f2ab09d0e 100644 --- a/src/tool_findfile.c +++ b/src/tool_findfile.c @@ -126,10 +126,12 @@ char *findfile(const char *fname, int dotscore) home = c; } if(list[i].withoutdot) { - if(!dotscore || xdg) + if(!dotscore || xdg) { /* this is not looking for .curlrc, or the XDG_CONFIG_HOME was defined so we skip the extended check */ + curl_free(home); continue; + } filename++; /* move past the leading dot */ dotscore = 0; /* disable it for this check */ } |