mirror of
https://github.com/Z3Prover/z3
synced 2025-04-10 19:27:06 +00:00
address some ASan leaks
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
d338fab4f6
commit
8cf0c94e5f
|
@ -24,6 +24,7 @@ Revision History:
|
|||
|
||||
#include "math/automata/symbolic_automata.h"
|
||||
#include "util/hashtable.h"
|
||||
#include "util/vector.h"
|
||||
|
||||
|
||||
|
||||
|
@ -311,7 +312,7 @@ symbolic_automata<T, M>::mk_determinstic_param(automaton_t& a, bool flip_accepta
|
|||
s2id.insert(set, p_state_id++); // the index to the initial state is 0
|
||||
id2s.push_back(set);
|
||||
|
||||
svector<uint_set> todo; //States to visit
|
||||
::vector<uint_set> todo; //States to visit
|
||||
todo.push_back(set);
|
||||
|
||||
uint_set state;
|
||||
|
|
|
@ -42,7 +42,7 @@ public:
|
|||
bool empty() const { return m_vector.empty(); }
|
||||
void resize(unsigned sz) {
|
||||
if (sz < m_vector.size()) {
|
||||
for (unsigned i = m_vector.size(); i < sz; i++)
|
||||
for (unsigned i = m_vector.size(); i-- > sz; )
|
||||
dealloc(m_vector[i]);
|
||||
m_vector.shrink(sz);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue