summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-12-19 20:36:04 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-12-19 20:36:04 +0000
commit1fb8623ffd9ba845982c7e27ef003ba7eafb9b20 (patch)
tree6136b08fd5b9d3934789a00f79f5ff39e490f6f7
parent062c08bf947c18f96d7b13a51277d0667b99662f (diff)
Remove NULL-check before free().
-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;