diff options
author | mmcc <mmcc@cvs.openbsd.org> | 2015-12-19 20:36:04 +0000 |
---|---|---|
committer | mmcc <mmcc@cvs.openbsd.org> | 2015-12-19 20:36:04 +0000 |
commit | 1fb8623ffd9ba845982c7e27ef003ba7eafb9b20 (patch) | |
tree | 6136b08fd5b9d3934789a00f79f5ff39e490f6f7 | |
parent | 062c08bf947c18f96d7b13a51277d0667b99662f (diff) |
Remove NULL-check before free().
-rw-r--r-- | usr.sbin/mrouted/prune.c | 3 |
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; |