summaryrefslogtreecommitdiff
path: root/build/build.c
diff options
context:
space:
mode:
Diffstat (limited to 'build/build.c')
-rw-r--r--build/build.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/build.c b/build/build.c
index a6888b77d..5a067c830 100644
--- a/build/build.c
+++ b/build/build.c
@@ -58,11 +58,11 @@ static char * buildHost(void)
if (getaddrinfo(hostname, NULL, &hints, &ai) == 0) {
strcpy(hostname, ai->ai_canonname);
+ freeaddrinfo(ai);
} else {
rpmlog(RPMLOG_WARNING,
_("Could not canonicalize hostname: %s\n"), hostname);
}
- freeaddrinfo(ai);
}
}
free(bhMacro);