Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/ld.elf_so Fix refcount of the object we found in our...
details: https://anonhg.NetBSD.org/src/rev/ec562e2f428d
branches: trunk
changeset: 786768:ec562e2f428d
user: christos <christos%NetBSD.org@localhost>
date: Thu May 09 15:37:58 2013 +0000
description:
Fix refcount of the object we found in our list by name.
diffstat:
libexec/ld.elf_so/load.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 058ad28acd43 -r ec562e2f428d libexec/ld.elf_so/load.c
--- a/libexec/ld.elf_so/load.c Thu May 09 15:25:44 2013 +0000
+++ b/libexec/ld.elf_so/load.c Thu May 09 15:37:58 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: load.c,v 1.44 2013/05/06 19:59:30 christos Exp $ */
+/* $NetBSD: load.c,v 1.45 2013/05/09 15:37:58 christos Exp $ */
/*
* Copyright 1996 John D. Polstra.
@@ -40,7 +40,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: load.c,v 1.44 2013/05/06 19:59:30 christos Exp $");
+__RCSID("$NetBSD: load.c,v 1.45 2013/05/09 15:37:58 christos Exp $");
#endif /* not lint */
#include <err.h>
@@ -212,6 +212,7 @@
dbg(("load by name %s %p", name, x));
for (o = _rtld_objlist->next; o != NULL; o = o->next)
if (_rtld_object_match_name(o, name)) {
+ ++o->refcount;
(*needed)->obj = o;
return true;
}
Home |
Main Index |
Thread Index |
Old Index