summaryrefslogtreecommitdiffstats
path: root/src/vnet/sr/sr_policy_rewrite.c
diff options
context:
space:
mode:
authorshwethab <shwetha.bhandari@gmail.com>2017-03-29 11:36:37 +0000
committerDamjan Marion <dmarion.lists@gmail.com>2017-03-30 12:17:45 +0000
commitb18e0de1f9630fab8b3d6ffe85c7a6ee35a6fdac (patch)
tree646a05e633981776bddc131e752024cb0d4ca46a /src/vnet/sr/sr_policy_rewrite.c
parentadcaaf14012acec9afc3cb6f3738b98d9e9b4c04 (diff)
SR replicate mheap corruption fix VPP-672
Change-Id: If1c68fc63fa71fab198f2bf4f79bdd7a9841c2e8 Signed-off-by: shwethab <shwetha.bhandari@gmail.com> Signed-off-by: Pablo Camarillo <pcamaril@cisco.com>
Diffstat (limited to 'src/vnet/sr/sr_policy_rewrite.c')
-rwxr-xr-xsrc/vnet/sr/sr_policy_rewrite.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/vnet/sr/sr_policy_rewrite.c b/src/vnet/sr/sr_policy_rewrite.c
index de6c1616704..61cf4437125 100755
--- a/src/vnet/sr/sr_policy_rewrite.c
+++ b/src/vnet/sr/sr_policy_rewrite.c
@@ -518,11 +518,6 @@ update_replicate (ip6_sr_policy_t * sr_policy)
replicate_multipath_update (&sr_policy->ip6_dpo, ip6_path_vector);
if (sr_policy->is_encap)
replicate_multipath_update (&sr_policy->ip4_dpo, ip4_path_vector);
-
- /* Cleanup */
- vec_free (b_path_vector);
- vec_free (ip6_path_vector);
- vec_free (ip4_path_vector);
}
/******************************* SR rewrite API *******************************/
@@ -606,10 +601,6 @@ sr_policy_add (ip6_address_t * bsid, ip6_address_t * segments,
"SRv6 steering of IP6 prefixes through BSIDs");
sm->fib_table_ip4 = fib_table_create_and_lock (FIB_PROTOCOL_IP6,
"SRv6 steering of IP4 prefixes through BSIDs");
- fib_table_flush (sm->fib_table_ip6, FIB_PROTOCOL_IP6,
- FIB_SOURCE_SPECIAL);
- fib_table_flush (sm->fib_table_ip4, FIB_PROTOCOL_IP6,
- FIB_SOURCE_SPECIAL);
}
/* Create IPv6 FIB for the BindingSID attached to the DPO of the only SL */