Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
82837673
Commit
82837673
authored
Jun 08, 2011
by
Sebastian Hahn
Browse files
Fix a memleak in nodelist_assert_ok()
parent
3033f845
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/coverity_master
View file @
82837673
o Minor bugfixes:
- Prevent using negative indices during unit test runs when read_all()
fails. Spotted by coverity. Bugfix on 0.2.3.1.
- Fix a rare memory leak when checking the nodelist without it being
present. Found by coverity. Bugfix on 0.2.3.1.
o Code simplifications and refactoring:
- Remove a dead variable in the heartbeat log code. Spotted by coverity.
src/or/nodelist.c
View file @
82837673
...
...
@@ -342,11 +342,13 @@ nodelist_assert_ok(void)
{
routerlist_t
*
rl
=
router_get_routerlist
();
networkstatus_t
*
ns
=
networkstatus_get_latest_consensus
();
digestmap_t
*
dm
=
digestmap_new
()
;
digestmap_t
*
dm
;
if
(
!
the_nodelist
)
return
;
dm
=
digestmap_new
();
/* every routerinfo in rl->routers should be in the nodelist. */
if
(
rl
)
{
SMARTLIST_FOREACH_BEGIN
(
rl
->
routers
,
routerinfo_t
*
,
ri
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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