summaryrefslogtreecommitdiff
path: root/malloc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-07-07 08:03:07 +0000
committerUlrich Drepper <drepper@redhat.com>2000-07-07 08:03:07 +0000
commitb97e3f1f007bbe9902b6aa7116bf81110c22fe20 (patch)
tree9e6d9380e234564a6db9418e5dd168bc8326eb76 /malloc
parent8ccd2cb1910a239087f41dd1e90c89e675232239 (diff)
Exit with exit code 1 if any leak was detected.
Diffstat (limited to 'malloc')
-rw-r--r--malloc/mtrace.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/malloc/mtrace.pl b/malloc/mtrace.pl
index f6b26aaccb..aff04d35c5 100644
--- a/malloc/mtrace.pl
+++ b/malloc/mtrace.pl
@@ -1,7 +1,7 @@
#! @PERL@
eval "exec @PERL@ -S $0 $*"
if 0;
-# Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
+# Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# Contributed by Ulrich Drepper <drepper@gnu.org>, 1997.
# Based on the mtrace.awk script.
@@ -196,4 +196,4 @@ if ($#addrs >= 0) {
}
print "No memory leaks.\n" if ($anything == 0);
-exit 0;
+exit $anything != 0;