Module Name:    src
Committed By:   christos
Date:           Thu May  9 15:37:58 UTC 2013

Modified Files:
        src/libexec/ld.elf_so: load.c

Log Message:
Fix refcount of the object we found in our list by name.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/libexec/ld.elf_so/load.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/libexec/ld.elf_so/load.c
diff -u src/libexec/ld.elf_so/load.c:1.44 src/libexec/ld.elf_so/load.c:1.45
--- src/libexec/ld.elf_so/load.c:1.44	Mon May  6 15:59:30 2013
+++ src/libexec/ld.elf_so/load.c	Thu May  9 11:37:58 2013
@@ -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 @@ _rtld_load_by_name(const char *name, Obj
 	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;
 		}

Reply via email to