Module Name:    src
Committed By:   christos
Date:           Wed May  8 15:25:01 UTC 2013

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

Log Message:
need xfree() instead of free(). Using free() ends us up in an infinite loop.


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/libexec/ld.elf_so/map_object.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/map_object.c
diff -u src/libexec/ld.elf_so/map_object.c:1.49 src/libexec/ld.elf_so/map_object.c:1.50
--- src/libexec/ld.elf_so/map_object.c:1.49	Mon May  6 15:59:30 2013
+++ src/libexec/ld.elf_so/map_object.c	Wed May  8 11:25:01 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: map_object.c,v 1.49 2013/05/06 19:59:30 christos Exp $	 */
+/*	$NetBSD: map_object.c,v 1.50 2013/05/08 15:25:01 christos Exp $	 */
 
 /*
  * Copyright 1996 John D. Polstra.
@@ -34,7 +34,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: map_object.c,v 1.49 2013/05/06 19:59:30 christos Exp $");
+__RCSID("$NetBSD: map_object.c,v 1.50 2013/05/08 15:25:01 christos Exp $");
 #endif /* not lint */
 
 #include <errno.h>
@@ -435,7 +435,7 @@ _rtld_obj_free(Obj_Entry *obj)
 	while (!STAILQ_EMPTY(&obj->names)) {
 		Name_Entry *entry = STAILQ_FIRST(&obj->names);
 		STAILQ_REMOVE_HEAD(&obj->names, link);
-		free(entry);
+		xfree(entry);
 	}
 	while ((elm = SIMPLEQ_FIRST(&obj->dldags)) != NULL) {
 		SIMPLEQ_REMOVE_HEAD(&obj->dldags, link);

Reply via email to