summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/afs/src/appl/udebug/udebug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/afs/src/appl/udebug/udebug.c b/usr.sbin/afs/src/appl/udebug/udebug.c
index 6e2a63e0c03..feb1066b657 100644
--- a/usr.sbin/afs/src/appl/udebug/udebug.c
+++ b/usr.sbin/afs/src/appl/udebug/udebug.c
@@ -69,7 +69,7 @@ newhost(u_int32_t **hosts, int *len, char *host)
ptr = realloc(*hosts, sizeof(u_int32_t) * ++*len);
if (ptr == NULL) {
- free(hosts);
+ free(*hosts);
hosts = NULL;
err(1, "realloc");
}