summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2011-01-05 01:01:28 +0100
committerJelmer Vernooij <jelmer@samba.org>2011-01-05 01:01:28 +0100
commit733bc1c1ca31df2b61d86f5ee8783ee9c3867faa (patch)
tree5431cbebf551b6b0352d24a10c951d9a3de0ee1b
parent899adcaec97f5f8781507a221d0ffcbe73e59b0c (diff)
downloadsamba-733bc1c1ca31df2b61d86f5ee8783ee9c3867faa.tar.gz
samba-733bc1c1ca31df2b61d86f5ee8783ee9c3867faa.tar.bz2
samba-733bc1c1ca31df2b61d86f5ee8783ee9c3867faa.zip
talloc: Clarify error message on access after free.
-rw-r--r--lib/talloc/talloc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/talloc/talloc.c b/lib/talloc/talloc.c
index ec67a463ab..d6115af529 100644
--- a/lib/talloc/talloc.c
+++ b/lib/talloc/talloc.c
@@ -224,9 +224,9 @@ static void talloc_abort_magic(unsigned magic)
talloc_abort("Bad talloc magic value - wrong talloc version used/mixed");
}
-static void talloc_abort_double_free(void)
+static void talloc_abort_access_after_free(void)
{
- talloc_abort("Bad talloc magic value - double free");
+ talloc_abort("Bad talloc magic value - access after free");
}
static void talloc_abort_unknown_value(void)
@@ -246,8 +246,8 @@ static inline struct talloc_chunk *talloc_chunk_from_ptr(const void *ptr)
}
if (tc->flags & TALLOC_FLAG_FREE) {
- talloc_log("talloc: double free error - first free may be at %s\n", tc->name);
- talloc_abort_double_free();
+ talloc_log("talloc: access after free error - first free may be at %s\n", tc->name);
+ talloc_abort_access_after_free();
return NULL;
} else {
talloc_abort_unknown_value();