summaryrefslogtreecommitdiff
path: root/usr.sbin/mrouted/prune.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/mrouted/prune.c')
-rw-r--r--usr.sbin/mrouted/prune.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/mrouted/prune.c b/usr.sbin/mrouted/prune.c
index 3f0594ddce7..7e8bebad614 100644
--- a/usr.sbin/mrouted/prune.c
+++ b/usr.sbin/mrouted/prune.c
@@ -1314,8 +1314,7 @@ free_all_prunes(void)
g = kernel_no_route;
while (g) {
- if (g->gt_srctbl)
- free(g->gt_srctbl);
+ free(g->gt_srctbl);
prev_g = g;
g = g->gt_next;