From 42f1fb21a303c71ce8ea507d5cf855d59d7e0b19 Mon Sep 17 00:00:00 2001 From: mpi Date: Mon, 5 May 2014 13:48:11 +0000 Subject: [PATCH] Plug a memory leak related to HID descriptor parsing. ok jsg@ --- sys/dev/usb/hidms.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.20.1