diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-08-06 20:37:26 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-08-06 20:37:26 +0000 |
commit | 99422ef8c6c502d635d94438fae8ba9368de899c (patch) | |
tree | e4b616c1bcbfc9e280bfdfb87a59b1ea25fb70d5 /sbin/modload/modload.c | |
parent | 51dc67db8522c1b8bb1892510d58adfe25267e60 (diff) |
Remove an unused variable and plug a memory leak; Patrick Latifi
Diffstat (limited to 'sbin/modload/modload.c')
-rw-r--r-- | sbin/modload/modload.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/modload/modload.c b/sbin/modload/modload.c index b22cee48077..ee10be48bf0 100644 --- a/sbin/modload/modload.c +++ b/sbin/modload/modload.c @@ -1,4 +1,4 @@ -/* $OpenBSD: modload.c,v 1.40 2003/04/15 08:06:31 deraadt Exp $ */ +/* $OpenBSD: modload.c,v 1.41 2003/08/06 20:37:25 millert Exp $ */ /* $NetBSD: modload.c,v 1.30 2001/11/08 15:33:15 christos Exp $ */ /* @@ -152,7 +152,7 @@ static int verify_entry(const char *entry, char *filename) { struct nlist names[2]; - int n, len; + int n; char *s; memset(names, 0, sizeof(names)); @@ -167,6 +167,7 @@ verify_entry(const char *entry, char *filename) n = nlist(filename, names); if (n == -1) err(1, "nlist %s", filename); + free(s); return n; } |