-/* $OpenBSD: bwfm.c,v 1.108 2023/03/26 09:39:46 jsg Exp $ */
+/* $OpenBSD: bwfm.c,v 1.109 2023/03/28 14:01:42 jsg Exp $ */
/*
* Copyright (c) 2010-2016 Broadcom Corporation
* Copyright (c) 2016,2017 Patrick Wildt <patrick@blueri.se>
if (bwfm_proto_bcdc_txctl(sc, reqid, (char *)dcmd, &size)) {
DPRINTF(("%s: tx failed\n", DEVNAME(sc)));
- free(dcmd, M_TEMP, size);
return ret;
}
if (bwfm_proto_bcdc_txctl(sc, reqid, (char *)dcmd, &size)) {
DPRINTF(("%s: txctl failed\n", DEVNAME(sc)));
- free(dcmd, M_TEMP, size);
return ret;
}
if (sc->sc_bus_ops->bs_txctl(sc, ctl)) {
DPRINTF(("%s: tx failed\n", DEVNAME(sc)));
- free(ctl, M_TEMP, sizeof(*ctl));
return 1;
}