diff options
| author | 2015-12-11 20:15:52 +0000 | |
|---|---|---|
| committer | 2015-12-11 20:15:52 +0000 | |
| commit | 85fc22730c12ceb0f5585eb2f74fe7ba8ad4777c (patch) | |
| tree | cd0e48dc741b393593869adf0e67892925b65f2f /usr.sbin/rtadvd/if.c | |
| parent | remove no longer needed prototype (diff) | |
| download | wireguard-openbsd-85fc22730c12ceb0f5585eb2f74fe7ba8ad4777c.tar.xz wireguard-openbsd-85fc22730c12ceb0f5585eb2f74fe7ba8ad4777c.zip | |
Remove NULL-checks before free().
Diffstat (limited to 'usr.sbin/rtadvd/if.c')
| -rw-r--r-- | usr.sbin/rtadvd/if.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/rtadvd/if.c b/usr.sbin/rtadvd/if.c index a1a2e221c10..0b68beebffe 100644 --- a/usr.sbin/rtadvd/if.c +++ b/usr.sbin/rtadvd/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.34 2015/12/01 12:11:31 jca Exp $ */ +/* $OpenBSD: if.c,v 1.35 2015/12/11 20:15:52 mmcc Exp $ */ /* $KAME: if.c,v 1.17 2001/01/21 15:27:30 itojun Exp $ */ /* @@ -503,8 +503,7 @@ init_iflist(void) free(ifblock); ifblock_size = 0; } - if (iflist) - free(iflist); + free(iflist); /* get iflist block from kernel */ get_iflist(&ifblock, &ifblock_size); |
