]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - lib/malloc/malloc.c
bash-4.4 beta release
[thirdparty/bash.git] / lib / malloc / malloc.c
index cd987c0dc3b47e9f206c1a24dd5439e91f6ff196..053305fcdc71af1a0b70cdd8c214c7dc55379179 100644 (file)
@@ -866,8 +866,8 @@ internal_free (mem, file, line, flags)
       p = (union mhead *) ap - 1;
     }
 
-#if defined (MALLOC_TRACE) || defined (MALLOC_REGISTER)
-  if (malloc_trace || malloc_register)
+#if defined (MALLOC_TRACE) || defined (MALLOC_REGISTER) || defined (MALLOC_WATCH)
+  if (malloc_trace || malloc_register || _malloc_nwatch > 0)
     ubytes = p->mh_nbytes;
 #endif