summaryrefslogtreecommitdiffstats
path: root/usr.sbin/fwcontrol/fwcontrol.c
diff options
context:
space:
mode:
authorsimokawa <simokawa@FreeBSD.org>2003-04-30 03:38:07 +0000
committersimokawa <simokawa@FreeBSD.org>2003-04-30 03:38:07 +0000
commit8ac078ac22dad1fdce888c1d0b4349b23709d191 (patch)
treea71af2b6c60e20f97b19464b7b33b3620bb96adc /usr.sbin/fwcontrol/fwcontrol.c
parentf21b29f0c79486373947a323bca6dd4349fc2c6f (diff)
downloadFreeBSD-src-8ac078ac22dad1fdce888c1d0b4349b23709d191.zip
FreeBSD-src-8ac078ac22dad1fdce888c1d0b4349b23709d191.tar.gz
Free asyreq.
Submitted by: ryuchi@ryuchi.org
Diffstat (limited to 'usr.sbin/fwcontrol/fwcontrol.c')
-rw-r--r--usr.sbin/fwcontrol/fwcontrol.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/fwcontrol/fwcontrol.c b/usr.sbin/fwcontrol/fwcontrol.c
index 4ad0f54..1725825 100644
--- a/usr.sbin/fwcontrol/fwcontrol.c
+++ b/usr.sbin/fwcontrol/fwcontrol.c
@@ -168,9 +168,9 @@ send_phy_config(int fd, int root_node, int gap_count)
printf("send phy_config root_node=%d gap_count=%d\n",
root_node, gap_count);
- if (ioctl(fd, FW_ASYREQ, asyreq) < 0) {
+ if (ioctl(fd, FW_ASYREQ, asyreq) < 0)
err(1, "ioctl");
- }
+ free(asyreq);
}
static void
@@ -185,9 +185,9 @@ send_link_on(int fd, int node)
asyreq->pkt.mode.ld[1] |= (1 << 30) | ((node & 0x3f) << 24);
asyreq->pkt.mode.ld[2] = ~asyreq->pkt.mode.ld[1];
- if (ioctl(fd, FW_ASYREQ, asyreq) < 0) {
+ if (ioctl(fd, FW_ASYREQ, asyreq) < 0)
err(1, "ioctl");
- }
+ free(asyreq);
}
static void
@@ -207,9 +207,9 @@ reset_start(int fd, int node)
asyreq->pkt.mode.wreqq.data = htonl(0x1);
- if (ioctl(fd, FW_ASYREQ, asyreq) < 0) {
+ if (ioctl(fd, FW_ASYREQ, asyreq) < 0)
err(1, "ioctl");
- }
+ free(asyreq);
}
static void
OpenPOWER on IntegriCloud