File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -135,10 +135,11 @@ CodeBuffer::~CodeBuffer() {
135
135
// Previous incarnations of this buffer are held live, so that internal
136
136
// addresses constructed before expansions will not be confused.
137
137
cb->free_blob ();
138
+ }
139
+ if (_overflow_arena != nullptr ) {
138
140
// free any overflow storage
139
- delete cb-> _overflow_arena ;
141
+ delete _overflow_arena;
140
142
}
141
-
142
143
if (_shared_trampoline_requests != nullptr ) {
143
144
delete _shared_trampoline_requests;
144
145
}
@@ -973,8 +974,6 @@ void CodeBuffer::take_over_code_from(CodeBuffer* cb) {
973
974
CodeSection* this_sect = code_section (n);
974
975
this_sect->take_over_code_from (cb_sect);
975
976
}
976
- _overflow_arena = cb->_overflow_arena ;
977
- cb->_overflow_arena = nullptr ;
978
977
// Make sure the old cb won't try to use it or free it.
979
978
DEBUG_ONLY (cb->_blob = (BufferBlob*)badAddress);
980
979
}
You can’t perform that action at this time.
0 commit comments