[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #7164 [Tor]: microdesc.c:378: Bug: microdesc_free() called, but md was still referenced 1 node(s); held_by_nodes == 1
#7164: microdesc.c:378: Bug: microdesc_free() called, but md was still referenced
1 node(s); held_by_nodes == 1
------------------------+-------------------------------------------------
Reporter: jaj123 | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: Tor: 0.2.???
Component: Tor | Version: Tor: 0.2.4.19
Resolution: | Keywords: tor-client 024-backport 025-triaged
Actual Points: | Parent ID:
Points: |
------------------------+-------------------------------------------------
Changes (by cypherpunks):
* status: needs_information => needs_review
Comment:
#13481 and probably some another reported case should be fixed by next
patch:
{{{
--- nodelist.c.original 2014-10-10 06:06:24.000000000 -0700
+++ nodelist.c 2014-12-18 06:29:32.696802404 -0800
@@ -229,6 +229,10 @@
if (node->md)
node->md->held_by_nodes++;
}
+ } else { /* No md-consensus used, releasing md used by node */
+ if (node->md)
+ node->md->held_by_nodes--;
+ node->md = NULL;
}
node_set_country(node);
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7164#comment:60>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs