Skip to content

Commit 75ee817

Browse files
author
Eric Holk
committed
Fixing a use of uninitialized memory error in valgrind.
1 parent 838511e commit 75ee817

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rt/memory_region.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ memory_region::alloc_header *memory_region::get_header(void *mem) {
1515
memory_region::memory_region(rust_srv *srv, bool synchronized) :
1616
_srv(srv), _parent(NULL), _live_allocations(0),
1717
_detailed_leaks(getenv("RUST_DETAILED_LEAKS") != NULL),
18-
_synchronized(synchronized) {
18+
_synchronized(synchronized), _hack_allow_leaks(false) {
1919
}
2020

2121
memory_region::memory_region(memory_region *parent) :
2222
_srv(parent->_srv), _parent(parent), _live_allocations(0),
2323
_detailed_leaks(parent->_detailed_leaks),
24-
_synchronized(parent->_synchronized) {
24+
_synchronized(parent->_synchronized), _hack_allow_leaks(false) {
2525
}
2626

2727
void memory_region::add_alloc() {

0 commit comments

Comments
 (0)