summaryrefslogtreecommitdiffstats
path: root/lib/libpcap/optimize.c
diff options
context:
space:
mode:
authormmcc <mmcc@openbsd.org>2015-12-22 19:51:04 +0000
committermmcc <mmcc@openbsd.org>2015-12-22 19:51:04 +0000
commit526dd6c5d3f736e0961520465d497f611c784d4f (patch)
treeeb3c162549a71823c0a2d9b120044ae712fec760 /lib/libpcap/optimize.c
parentremove a NULL-check before free() (diff)
downloadwireguard-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.c5
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;