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 need xfree() instead of free(). Using free...
details: https://anonhg.NetBSD.org/src/rev/008a28659c54
branches: trunk
changeset: 786747:008a28659c54
user: christos <christos%NetBSD.org@localhost>
date: Wed May 08 15:25:01 2013 +0000
description:
need xfree() instead of free(). Using free() ends us up in an infinite loop.
diffstat:
libexec/ld.elf_so/map_object.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 813e40b42ff7 -r 008a28659c54 libexec/ld.elf_so/map_object.c
--- a/libexec/ld.elf_so/map_object.c Wed May 08 15:14:27 2013 +0000
+++ b/libexec/ld.elf_so/map_object.c Wed May 08 15:25:01 2013 +0000
@@ -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 @@
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);
Home |
Main Index |
Thread Index |
Old Index