Skip to content

Commit 0fcd72c

Browse files
committed
When using the allow leaks hack don't even print a warning about the leak
This is only used for the test runner and in that case it just makes the test output confusing
1 parent 4ef1ec5 commit 0fcd72c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/rt/memory_region.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,6 @@ memory_region::~memory_region() {
139139
if (!_hack_allow_leaks) {
140140
_srv->fatal(msg, __FILE__, __LINE__,
141141
"%d objects", _live_allocations);
142-
} else {
143-
_srv->warning(msg, __FILE__, __LINE__,
144-
"%d objects", _live_allocations);
145142
}
146143
if (_synchronized) { _lock.unlock(); }
147144
}

0 commit comments

Comments
 (0)