summaryrefslogtreecommitdiff
path: root/pimd/pim_static.c
diff options
context:
space:
mode:
Diffstat (limited to 'pimd/pim_static.c')
-rw-r--r--pimd/pim_static.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pimd/pim_static.c b/pimd/pim_static.c
index c1154dc088..5882142b32 100644
--- a/pimd/pim_static.c
+++ b/pimd/pim_static.c
@@ -198,6 +198,10 @@ int pim_static_add(struct interface *iif, struct interface *oif, struct in_addr
pim_static_route_free(s_route);
}
+ if (original_s_route) {
+ pim_static_route_free(original_s_route);
+ }
+
return -1;
}