]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: inc/dec refcount on add/del NHG proto
authorStephen Worley <sworley@cumulusnetworks.com>
Wed, 20 May 2020 15:26:44 +0000 (11:26 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Mon, 28 Sep 2020 16:40:59 +0000 (12:40 -0400)
commit6fae63d2bab3e5ee9f83458e32f4292165ef6cb6
treeb718bb8611185abe9f61a564bb45f63607056219
parent2d8a9c544bd9bdfc6a32910f593ab65fbab2036c
zebra: inc/dec refcount on add/del NHG proto

When we add a proto NHG, increment the refcount, when
we del a proto NHG, decrement the refcount rather than
deleting it explicitly. If the upper level proto is handling
it properly, it should get decremented to zero when we
receive a NHG del.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/zapi_msg.c