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 PR/50683: David Binderman:...



details:   https://anonhg.NetBSD.org/src/rev/8d300f9722e0
branches:  trunk
changeset: 813203:8d300f9722e0
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jan 21 16:58:36 2016 +0000

description:
PR/50683: David Binderman: Fix memory leak.

diffstat:

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

diffs (17 lines):

diff -r ce07ad5bd21b -r 8d300f9722e0 sys/arch/mipsco/stand/installboot/installboot.c
--- a/sys/arch/mipsco/stand/installboot/installboot.c   Thu Jan 21 15:41:29 2016 +0000
+++ b/sys/arch/mipsco/stand/installboot/installboot.c   Thu Jan 21 16:58:36 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: installboot.c,v 1.9 2013/06/27 21:23:21 christos Exp $ */
+/*     $NetBSD: installboot.c,v 1.10 2016/01/21 16:58:36 christos Exp $        */
 
 /*
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -208,6 +208,7 @@
        if (nowrite) {
            if (verbose)
                    fprintf(stderr, "not writing\n");
+           free(boot_code);
            return;
        }
 



Home | Main Index | Thread Index | Old Index