Plug a memory leak related to HID descriptor parsing.
authormpi <mpi@openbsd.org>
Mon, 5 May 2014 13:48:11 +0000 (13:48 +0000)
committermpi <mpi@openbsd.org>
Mon, 5 May 2014 13:48:11 +0000 (13:48 +0000)
ok jsg@

sys/dev/usb/hidms.c

index 6636d80..7db59b3 100644 (file)
@@ -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;
 }