man-pages/man-pages-2.51-malloc.patch
2007-05-30 14:18:29 +00:00

22 lines
869 B
Diff

--- man-pages-2.51/man3/malloc.3.pom 2007-05-29 15:31:43.000000000 +0200
+++ man-pages-2.51/man3/malloc.3 2007-05-29 15:42:33.000000000 +0200
@@ -166,11 +166,14 @@
memory leaks can result.
If
.BR MALLOC_CHECK_
-is set to 0, any detected heap corruption is silently ignored;
-if set to 1, a diagnostic is printed on stderr;
+is set to 0, any detected heap corruption is silently ignored and
+an error message is not generated;
+if set to 1, the error message is printed on stderr, but the program
+is not aborted;
if set to 2,
-.BR abort (3)
-is called immediately.
+.BR abort()
+is called immediately, but the error message is not generated;
+if set to 3, the error message is printed on stderr and program is aborted.
This can be useful because otherwise
a crash may happen much later, and the true cause for the problem
is then very hard to track down.