Module Name: src
Committed By: christos
Date: Thu Jun 27 21:23:21 UTC 2013
Modified Files:
src/sys/arch/mipsco/stand/installboot: installboot.c
Log Message:
free boot_code
http://M00nBSD.net/ae123a9bae03f7dde5c6d654412daf5a.html
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/mipsco/stand/installboot/installboot.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/mipsco/stand/installboot/installboot.c
diff -u src/sys/arch/mipsco/stand/installboot/installboot.c:1.8 src/sys/arch/mipsco/stand/installboot/installboot.c:1.9
--- src/sys/arch/mipsco/stand/installboot/installboot.c:1.8 Wed Mar 18 06:22:32 2009
+++ src/sys/arch/mipsco/stand/installboot/installboot.c Thu Jun 27 17:23:21 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: installboot.c,v 1.8 2009/03/18 10:22:32 cegger Exp $ */
+/* $NetBSD: installboot.c,v 1.9 2013/06/27 21:23:21 christos Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -219,6 +219,7 @@ do_install(const char *disk, const char
if ((fd = open(disk, O_WRONLY)) == -1)
FATALIO("open %s", bootstrap);
len = pwrite(fd, boot_code, boot_size, BOOTBLOCK_OFFSET);
+ free(boot_code);
if (len == -1)
FATAL("write %s", disk);
if (len != boot_size)