From f2d18093ddf4e60ea540b3ff21e67fe57f722190 Mon Sep 17 00:00:00 2001 From: "wtchang%redhat.com" Date: Mon, 14 Mar 2005 18:32:02 +0000 Subject: [PATCH] Bugzilla Bug 238563: removed PR_ASSERT from pr_ZoneRealloc because it is redundant with the DEBUG fprintf. (Darin Fisher of Google pointed out this problem in his code review.) --- nsprpub/pr/src/malloc/prmem.c | 1 - 1 file changed, 1 deletion(-) diff --git a/nsprpub/pr/src/malloc/prmem.c b/nsprpub/pr/src/malloc/prmem.c index 29469d772d8..1ef3d2f7c11 100644 --- a/nsprpub/pr/src/malloc/prmem.c +++ b/nsprpub/pr/src/malloc/prmem.c @@ -334,7 +334,6 @@ pr_ZoneRealloc(void *oldptr, PRUint32 bytes) if (!oldptr) return pr_ZoneMalloc(bytes); mb = (MemBlockHdr *)((char *)oldptr - (sizeof *mb)); - PR_ASSERT(mb->s.magic == ZONE_MAGIC); if (mb->s.magic != ZONE_MAGIC) { /* Maybe this just came from ordinary malloc */ #ifdef DEBUG