Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/elf2aout David Binderman in PR bin/50897: fix memory...



details:   https://anonhg.NetBSD.org/src/rev/fd3c4a0e99aa
branches:  trunk
changeset: 343945:fd3c4a0e99aa
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Mar 06 15:44:06 2016 +0000

description:
David Binderman in PR bin/50897: fix memory leak.

diffstat:

 usr.bin/elf2aout/elf2aout.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r f56fe9f954ac -r fd3c4a0e99aa usr.bin/elf2aout/elf2aout.c
--- a/usr.bin/elf2aout/elf2aout.c       Sun Mar 06 10:59:56 2016 +0000
+++ b/usr.bin/elf2aout/elf2aout.c       Sun Mar 06 15:44:06 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elf2aout.c,v 1.15 2011/07/10 05:07:48 tsutsui Exp $    */
+/*     $NetBSD: elf2aout.c,v 1.16 2016/03/06 15:44:06 martin Exp $     */
 
 /*
  * Copyright (c) 1995
@@ -478,6 +478,7 @@
                fprintf(stderr, "translate_syms: newstrings: %s\n", strerror(errno));
                exit(1);
        }
+       free(oldstrings);
 }
 
 void



Home | Main Index | Thread Index | Old Index