3
0
Fork 0
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:
Nikolaj Bjorner 2014-01-15 17:00:07 -08:00
parent 39dcc653df
commit ff54b3d92b
2 changed files with 27 additions and 2 deletions

View file

@ -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);