aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/fwcontrol
diff options
context:
space:
mode:
authorHidetoshi Shimokawa <simokawa@FreeBSD.org>2003-04-30 03:38:07 +0000
committerHidetoshi Shimokawa <simokawa@FreeBSD.org>2003-04-30 03:38:07 +0000
commit5193feb69e159ee236e4593db5b1b8d1351deeb4 (patch)
treea71af2b6c60e20f97b19464b7b33b3620bb96adc /usr.sbin/fwcontrol
parent85b1dc89b62ba78e0da8ca421a2a7c1308000001 (diff)
downloadsrc-5193feb69e159ee236e4593db5b1b8d1351deeb4.tar.gz
src-5193feb69e159ee236e4593db5b1b8d1351deeb4.zip
Notes
Diffstat (limited to 'usr.sbin/fwcontrol')
-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 4ad0f545bb5e..1725825a0f34 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