Module Name: src
Committed By: martin
Date: Sun Mar 6 15:44:06 UTC 2016
Modified Files:
src/usr.bin/elf2aout: elf2aout.c
Log Message:
David Binderman in PR bin/50897: fix memory leak.
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/usr.bin/elf2aout/elf2aout.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/elf2aout/elf2aout.c
diff -u src/usr.bin/elf2aout/elf2aout.c:1.15 src/usr.bin/elf2aout/elf2aout.c:1.16
--- src/usr.bin/elf2aout/elf2aout.c:1.15 Sun Jul 10 05:07:48 2011
+++ src/usr.bin/elf2aout/elf2aout.c Sun Mar 6 15:44:06 2016
@@ -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 @@ translate_syms(int out, int in, off_t sy
fprintf(stderr, "translate_syms: newstrings: %s\n", strerror(errno));
exit(1);
}
+ free(oldstrings);
}
void