summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2015-08-28 19:59:37 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2015-08-28 19:59:37 +0000
commit47ff2cfee871c71d001587b5e83615ed0f1546eb (patch)
treee5fbda95f54789a49ac065f043bdf69fe9c76fa9 /sys
parentdb9237421c64b7ec3ebb1e46039297194ced53c7 (diff)
fix an unprobable leak. ok deraadt mikeb
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/amd64/amd64/aesni.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/aesni.c b/sys/arch/amd64/amd64/aesni.c
index 15ff2ef85d5..adf4c3948ae 100644
--- a/sys/arch/amd64/amd64/aesni.c
+++ b/sys/arch/amd64/amd64/aesni.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aesni.c,v 1.34 2015/08/28 16:16:44 tedu Exp $ */
+/* $OpenBSD: aesni.c,v 1.35 2015/08/28 19:59:36 tedu Exp $ */
/*-
* Copyright (c) 2003 Jason Wright
* Copyright (c) 2003, 2004 Theo de Raadt
@@ -160,6 +160,7 @@ aesni_setup(void)
aesni_sc->sc_cid = crypto_get_driverid(0);
if (aesni_sc->sc_cid < 0) {
+ free(aesni_sc->sc_buf, M_DEVBUF, aesni_sc->sc_buflen);
free(aesni_sc, M_DEVBUF, sizeof(*aesni_sc));
return;
}