mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
fix memory leak for scoped_numeral over trail objects
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
39dcc653df
commit
ff54b3d92b
2 changed files with 27 additions and 2 deletions
|
@ -39,7 +39,7 @@ public:
|
|||
numeral const & get() const { return m_num; }
|
||||
numeral & get() { return m_num; }
|
||||
|
||||
_scoped_numeral & operator=(_scoped_numeral & n) {
|
||||
_scoped_numeral & operator=(_scoped_numeral const & n) {
|
||||
if (this == &n)
|
||||
return *this;
|
||||
m().set(m_num, n.m_num);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue