Prevent a frame leak when a pending node dispatches packets to itself. 13/3913/3
authorNeale Ranns <nranns@cisco.com>
Tue, 22 Nov 2016 08:29:51 +0000 (08:29 +0000)
committerDave Barach <openvpp@barachs.net>
Tue, 22 Nov 2016 18:22:41 +0000 (18:22 +0000)
commit8817061c7337c936da2553a4881098e1646d05dc
tree6e167b33db7005c35782671ab1c7718782ecbcad
parentfba8a9510283a1b7d8e047fe93a47612c4c1b7cd
Prevent a frame leak when a pending node dispatches packets to itself.

this patch recognises the case where the pending frame has packets dispatched to the same to-node, i.e. when restoring the frame there now exists a new to-node frame, and then frees the frame in hand.

Change-Id: If166bf56970b7b3412fa6097cd90bf22f72abe4d
Signed-off-by: Neale Ranns <nranns@cisco.com>
vlib/vlib/main.c