diff options
author | David Hill <dhill@cvs.openbsd.org> | 2006-03-18 03:34:23 +0000 |
---|---|---|
committer | David Hill <dhill@cvs.openbsd.org> | 2006-03-18 03:34:23 +0000 |
commit | 8801bcf8eee8dcff5dcaebc2bf3872c6e1522367 (patch) | |
tree | 583ca14a440e4006282db048e554a2610e8ad8e9 /lib | |
parent | db02595763714c4f98861172efb5293c36e572ae (diff) |
Plug a memleak
ok ray@ "Wow, no kidding." deraaadt@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libusbhid/usage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libusbhid/usage.c b/lib/libusbhid/usage.c index eea8df4e9eb..cffa7005290 100644 --- a/lib/libusbhid/usage.c +++ b/lib/libusbhid/usage.c @@ -1,4 +1,4 @@ -/* $OpenBSD: usage.c,v 1.7 2005/02/10 22:24:52 matthieu Exp $ */ +/* $OpenBSD: usage.c,v 1.8 2006/03/18 03:34:22 dhill Exp $ */ /* $NetBSD: usage.c,v 1.1 2001/12/28 17:45:27 augustss Exp $ */ /* @@ -185,7 +185,7 @@ hid_start(const char *hidname) fail: if (f) fclose(f); - for (no = 0; no++; no < npages) { + for (no = 0; no < npages; no++) { if (pages[no].name) free((char *)pages[no].name); if (pages[no].page_contents) |