Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/binutils/dist/ld/emultempl CID 1102856: Fix me...
details: https://anonhg.NetBSD.org/src/rev/4558b6658cca
branches: trunk
changeset: 791348:4558b6658cca
user: christos <christos%NetBSD.org@localhost>
date: Thu Nov 14 01:12:14 2013 +0000
description:
CID 1102856: Fix memory leak
diffstat:
external/gpl3/binutils/dist/ld/emultempl/elf32.em | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 8f7d03ee7ad4 -r 4558b6658cca external/gpl3/binutils/dist/ld/emultempl/elf32.em
--- a/external/gpl3/binutils/dist/ld/emultempl/elf32.em Thu Nov 14 01:00:22 2013 +0000
+++ b/external/gpl3/binutils/dist/ld/emultempl/elf32.em Thu Nov 14 01:12:14 2013 +0000
@@ -1531,7 +1531,8 @@
a dep audit entry. */
if (audit_libs && *audit_libs != '\0')
{
- char *cp = xstrdup (audit_libs);
+ char *cp, *fcp;
+ fcp = cp = xstrdup (audit_libs);
do
{
int more = 0;
@@ -1549,6 +1550,7 @@
cp = more ? ++cp2 : NULL;
}
while (cp != NULL);
+ free (fcp);
}
}
Home |
Main Index |
Thread Index |
Old Index