]> git.puffer.fish Git - mirror/frr.git/commit
isisd: work around route table asserts for deleting node with info
authorChristian Franke <nobody@nowhere.ws>
Sun, 3 Apr 2016 15:46:25 +0000 (12:46 -0300)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 6 Apr 2016 12:06:33 +0000 (08:06 -0400)
commita5c63cea79a20f0fa471977baf997fb75a56ea7d
treef6bce2cb9bc16aa7ce1a0cc864c6c05b502342ef
parent0f48374b387d423d037fae779da06cd1dd90bf10
isisd: work around route table asserts for deleting node with info

The route table code in lib/table.c triggers an assertion when a route
node with rn->info != NULL reaches refcount 0, probably to avoid
memleaks. In this particular case, this is not an issue, since the
info will be freed by the destructor.

However, since removing this assertion probably requires more
discussion, just make sure that rn->info gets freed and unset before
its refcount is decremented to zero.

Signed-off-by: Christian Franke <nobody@nowhere.ws>
isisd/isis_redist.c