From: mpi Date: Mon, 5 May 2014 13:48:11 +0000 (+0000) Subject: Plug a memory leak related to HID descriptor parsing. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=42f1fb21a303c71ce8ea507d5cf855d59d7e0b19;p=openbsd Plug a memory leak related to HID descriptor parsing. ok jsg@ --- 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; }