summaryrefslogtreecommitdiff
path: root/sys/dev/microcode/bwi/build/build.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/microcode/bwi/build/build.c')
-rw-r--r--sys/dev/microcode/bwi/build/build.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/microcode/bwi/build/build.c b/sys/dev/microcode/bwi/build/build.c
index e286e82f3a3..2869b3ad0cc 100644
--- a/sys/dev/microcode/bwi/build/build.c
+++ b/sys/dev/microcode/bwi/build/build.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: build.c,v 1.2 2014/07/12 18:48:18 tedu Exp $ */
+/* $OpenBSD: build.c,v 1.3 2014/07/12 19:01:49 tedu Exp $ */
/*
* Copyright (c) 2006 Marcus Glocker <mglocker@openbsd.org>
@@ -131,18 +131,18 @@ main(int argc, char *argv[])
err(1, "malloc");
}
if (read(fdin, p, h[i].filesize) < 1) {
- free(p, 0);
+ free(p);
close(fdout);
close(fdin);
err(1, "read input file failed\n");
}
if (write(fdout, p, h[i].filesize) < 1) {
- free(p, 0);
+ free(p);
close(fdout);
close(fdin);
err(1, "write to output file failed\n");
}
- free(p, 0);
+ free(p);
close(fdin);
}