diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2003-12-16 20:17:56 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2003-12-16 20:17:56 +0000 |
commit | a61d2039dbda0d1b9c08355ba862aaa7ed3ad664 (patch) | |
tree | b24397465f64f6a0b54ca33fc0dc1ac30784b009 /usr.sbin/afs | |
parent | 6c7b3d475c0ad1d749c15c9f0cc1d0cb0465b925 (diff) |
bad free - spotted by vincent@
Diffstat (limited to 'usr.sbin/afs')
-rw-r--r-- | usr.sbin/afs/src/appl/udebug/udebug.c | 2 |
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"); } |