From 733bc1c1ca31df2b61d86f5ee8783ee9c3867faa Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 5 Jan 2011 01:01:28 +0100 Subject: [PATCH] talloc: Clarify error message on access after free. --- lib/talloc/talloc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/talloc/talloc.c b/lib/talloc/talloc.c index ec67a463abc..d6115af5299 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(); -- 2.11.4.GIT