Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/ldd/ldd_elf Avoid free(3)'ing a commandline argument...
details: https://anonhg.NetBSD.org/src/rev/e03dd0d832c3
branches: trunk
changeset: 471728:e03dd0d832c3
user: kleink <kleink%NetBSD.org@localhost>
date: Fri Apr 09 14:24:21 1999 +0000
description:
Avoid free(3)'ing a commandline argument; from Mark Brinicombe in PR bin/7246.
diffstat:
usr.bin/ldd/ldd_elf/ldd.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r badf373aa032 -r e03dd0d832c3 usr.bin/ldd/ldd_elf/ldd.c
--- a/usr.bin/ldd/ldd_elf/ldd.c Fri Apr 09 14:11:57 1999 +0000
+++ b/usr.bin/ldd/ldd_elf/ldd.c Fri Apr 09 14:24:21 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ldd.c,v 1.2 1999/02/25 16:26:51 pk Exp $ */
+/* $NetBSD: ldd.c,v 1.3 1999/04/09 14:24:21 kleink Exp $ */
/*
* Copyright 1996 John D. Polstra.
@@ -107,7 +107,7 @@
continue;
}
- _rtld_objmain->path = *argv;
+ _rtld_objmain->path = xstrdup(*argv);
_rtld_objmain->mainprog = true;
_rtld_digest_dynamic(_rtld_objmain);
Home |
Main Index |
Thread Index |
Old Index