Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
561672d3
Commit
561672d3
authored
Jul 27, 2016
by
Alexandre Duret-Lutz
Browse files
lbtt: fix a memory leak detected by asan.
* spot/twaalgos/lbtt.cc: Here. * NEWS: Mention it.
parent
a9fc5d49
Changes
2
Hide whitespace changes
Inline
Side-by-side
NEWS
View file @
561672d3
...
...
@@ -195,6 +195,9 @@ New in spot 2.0.3a (not yet released)
* Fix some non-deterministic execution of minimize_wdba(), causing
test-suite failures with the future G++ 7, and clang 3.9.
* print_lbtt() had a memory leak when printing states without
successors.
New in spot 2.0.3 (2016-07-11)
Bug fixes:
...
...
spot/twaalgos/lbtt.cc
View file @
561672d3
...
...
@@ -51,7 +51,7 @@ namespace spot
}
acc_cond
::
mark_t
state_acc_sets
(
const
state
*
s
)
const
state_acc_sets
(
const
state
*
s
)
const
{
// If the automaton has a SBA type, it's easier to just query the
// state_is_accepting() method.
...
...
@@ -65,9 +65,9 @@ namespace spot
// is not terribly efficient since we have to create the
// iterator.
twa_succ_iterator
*
it
=
aut_
->
succ_iter
(
s
);
if
(
!
it
->
first
())
return
{};
auto
res
=
it
->
acc
();
acc_cond
::
mark_t
res
=
0U
;
if
(
it
->
first
())
res
=
it
->
acc
();
aut_
->
release_iter
(
it
);
return
res
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment