Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mipsco/stand/installboot free boot_code



details:   https://anonhg.NetBSD.org/src/rev/8403b7f0ae44
branches:  trunk
changeset: 787660:8403b7f0ae44
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jun 27 21:23:21 2013 +0000

description:
free boot_code
http://M00nBSD.net/ae123a9bae03f7dde5c6d654412daf5a.html

diffstat:

 sys/arch/mipsco/stand/installboot/installboot.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 1b8f38b1461f -r 8403b7f0ae44 sys/arch/mipsco/stand/installboot/installboot.c
--- a/sys/arch/mipsco/stand/installboot/installboot.c   Thu Jun 27 21:22:46 2013 +0000
+++ b/sys/arch/mipsco/stand/installboot/installboot.c   Thu Jun 27 21:23:21 2013 +0000
@@ -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 @@
        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)



Home | Main Index | Thread Index | Old Index