X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fhost.c;h=8b37d19f29f937fc399b209ae61bd5d4cdcf622d;hp=eeb4940d6190112797541b4c357b5ecfcf3668c6;hb=2ffb47eabf9fe89d513dc79bdc535e4092e1d6ee;hpb=9439a6659b9389ad390262ae188c95ab87c82ac0 diff --git a/src/host.c b/src/host.c index eeb4940d..8b37d19f 100644 --- a/src/host.c +++ b/src/host.c @@ -289,34 +289,34 @@ same_host (const char *u1, const char *u2) DEBUGP (("Comparing hosts %s and %s...\n", p1, p2)); if (strcasecmp (p1, p2) == 0) { - free (p1); - free (p2); + xfree (p1); + xfree (p2); DEBUGP (("They are quite alike.\n")); return 1; } else if (opt.simple_check) { - free (p1); - free (p2); + xfree (p1); + xfree (p2); DEBUGP (("Since checking is simple, I'd say they are not the same.\n")); return 0; } real1 = realhost (p1); real2 = realhost (p2); - free (p1); - free (p2); + xfree (p1); + xfree (p2); if (strcasecmp (real1, real2) == 0) { DEBUGP (("They are alike, after realhost()->%s.\n", real1)); - free (real1); - free (real2); + xfree (real1); + xfree (real2); return 1; } else { DEBUGP (("They are not the same (%s, %s).\n", real1, real2)); - free (real1); - free (real2); + xfree (real1); + xfree (real2); return 0; } }