From a61d2039dbda0d1b9c08355ba862aaa7ed3ad664 Mon Sep 17 00:00:00 2001 From: Bob Beck Date: Tue, 16 Dec 2003 20:17:56 +0000 Subject: bad free - spotted by vincent@ --- usr.sbin/afs/src/appl/udebug/udebug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- cgit v1.2.3