]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Free the nhe dataplane ctx always
authorStephen Worley <sworley@cumulusnetworks.com>
Tue, 14 May 2019 21:45:09 +0000 (14:45 -0700)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 25 Oct 2019 15:13:39 +0000 (11:13 -0400)
Free the nhe dataplane context no matter whether the operation
was successful or not.

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

index b5fd76b31f3b8e66d8b2df647846ce872eab6fc1..7373805d2ca8b91718ef70f6762b42eeddd2a19a 100644 (file)
@@ -1306,13 +1306,12 @@ void zebra_nhg_dplane_result(struct zebra_dplane_ctx *ctx)
                case DPLANE_OP_NONE:
                        break;
                }
-               dplane_ctx_fini(&ctx);
-
-       } else {
+       } else
                flog_err(
                        EC_ZEBRA_NHG_SYNC,
                        "%s operation preformed on Nexthop ID (%u) in the kernel, that we no longer have in our table",
                        dplane_op2str(op), id);
-       }
+
+       dplane_ctx_fini(&ctx);
 }