diff options
| author | 2015-12-22 19:51:04 +0000 | |
|---|---|---|
| committer | 2015-12-22 19:51:04 +0000 | |
| commit | 526dd6c5d3f736e0961520465d497f611c784d4f (patch) | |
| tree | eb3c162549a71823c0a2d9b120044ae712fec760 /lib/libpcap/optimize.c | |
| parent | remove a NULL-check before free() (diff) | |
| download | wireguard-openbsd-526dd6c5d3f736e0961520465d497f611c784d4f.tar.xz wireguard-openbsd-526dd6c5d3f736e0961520465d497f611c784d4f.zip | |
remove NULL-checks before free()
Diffstat (limited to 'lib/libpcap/optimize.c')
| -rw-r--r-- | lib/libpcap/optimize.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libpcap/optimize.c b/lib/libpcap/optimize.c index 509d6e9c38a..4572b2d9f02 100644 --- a/lib/libpcap/optimize.c +++ b/lib/libpcap/optimize.c @@ -1,4 +1,4 @@ -/* $OpenBSD: optimize.c,v 1.17 2015/11/17 21:39:23 mmcc Exp $ */ +/* $OpenBSD: optimize.c,v 1.18 2015/12/22 19:51:04 mmcc Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1991, 1993, 1994, 1995, 1996 @@ -2032,8 +2032,7 @@ filled: ++dst; ++off; } - if (offset) - free(offset); + free(offset); #ifdef BDEBUG bids[dst - fstart] = p->id + 1; |
