diff options
author | Marco d'Itri <md@linux.it> | 2009-12-07 22:47:26 +0100 |
---|---|---|
committer | Marco d'Itri <md@linux.it> | 2013-03-30 02:31:38 +0100 |
commit | e8806bc5090585fb90ca0f6a299ca013e4d61d11 (patch) | |
tree | e97322c7d11e9a19bb332caab0bd7240df696adb /whois.c | |
parent | 12aa6bb6ad752ff3498c6578d828835fbcbcc927 (diff) | |
download | whois-e8806bc5090585fb90ca0f6a299ca013e4d61d11.tar.gz |
Imported Debian version 4.7.37v4.7.37
Diffstat (limited to 'whois.c')
-rw-r--r-- | whois.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -335,6 +335,7 @@ const char *match_config_file(const char *s) i = regexec(&re, s, 0, NULL, 0); if (i == 0) { regfree(&re); + fclose(fp); return strdup(server); } if (i != REG_NOMATCH) { @@ -344,10 +345,13 @@ const char *match_config_file(const char *s) } regfree(&re); #else - if (domcmp(s, pattern)) + if (domcmp(s, pattern)) { + fclose(fp); return strdup(server); + } #endif } + fclose(fp); return NULL; } #endif |