summaryrefslogtreecommitdiff
path: root/sys/dev/usb/hidms.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2014-05-05 13:48:12 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2014-05-05 13:48:12 +0000
commita714dd1bfc8d73f183d5de71948d3830a0a7d5d2 (patch)
tree548a45db3265506448977e07162e80a46a1539b4 /sys/dev/usb/hidms.c
parentd803cc74c292c9df9c4a73476a0f62e033910411 (diff)
Plug a memory leak related to HID descriptor parsing.
ok jsg@
Diffstat (limited to 'sys/dev/usb/hidms.c')
-rw-r--r--sys/dev/usb/hidms.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/hidms.c b/sys/dev/usb/hidms.c
index 6636d805631..7db59b37899 100644
--- a/sys/dev/usb/hidms.c
+++ b/sys/dev/usb/hidms.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hidms.c,v 1.5 2013/08/09 22:10:17 edd Exp $ */
+/* $OpenBSD: hidms.c,v 1.6 2014/05/05 13:48:11 mpi Exp $ */
/* $NetBSD: ums.c,v 1.60 2003/03/11 16:44:00 augustss Exp $ */
/*
@@ -257,6 +257,7 @@ hidms_setup(struct device *self, struct hidms *ms, uint32_t quirks,
break;
}
}
+ hid_end_parse(d);
return 0;
}