artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8afed93
)
fix a memory leak in ihidev_hid_command()
author
jsg
<jsg@openbsd.org>
Thu, 20 Sep 2018 01:19:56 +0000
(
01:19
+0000)
committer
jsg
<jsg@openbsd.org>
Thu, 20 Sep 2018 01:19:56 +0000
(
01:19
+0000)
ok claudio@
sys/dev/i2c/ihidev.c
patch
|
blob
|
history
diff --git
a/sys/dev/i2c/ihidev.c
b/sys/dev/i2c/ihidev.c
index
cf183af
..
b34f97a
100644
(file)
--- a/
sys/dev/i2c/ihidev.c
+++ b/
sys/dev/i2c/ihidev.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: ihidev.c,v 1.1
7 2018/08/25 18:32:05 jcs
Exp $ */
+/* $OpenBSD: ihidev.c,v 1.1
8 2018/09/20 01:19:56 jsg
Exp $ */
/*
* HID-over-i2c driver
*
@@
-361,6
+361,7
@@
ihidev_hid_command(struct ihidev_softc *sc, int hidcmd, void *arg)
DPRINTF(("%s: response report id %d != %d\n",
sc->sc_dev.dv_xname, d, rreq->id));
iic_release_bus(sc->sc_tag, 0);
+ free(tmprep, M_DEVBUF, report_len);
return (1);
}