diff options
author | mmcc <mmcc@cvs.openbsd.org> | 2015-12-12 20:09:29 +0000 |
---|---|---|
committer | mmcc <mmcc@cvs.openbsd.org> | 2015-12-12 20:09:29 +0000 |
commit | defb7610355080ceba80e2edb026199b1b00abb4 (patch) | |
tree | 1d24fb6992d7da85bd2be4b9c4b8b2e6739417fe /libexec/spamd | |
parent | 20a03a1930fdecc80cfda559c3bb08094c7e2a82 (diff) |
Remove NULL-checks before free(). ok tb@
Diffstat (limited to 'libexec/spamd')
-rw-r--r-- | libexec/spamd/spamd.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libexec/spamd/spamd.c b/libexec/spamd/spamd.c index aafe0cd440b..b0241b9e373 100644 --- a/libexec/spamd/spamd.c +++ b/libexec/spamd/spamd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spamd.c,v 1.136 2015/12/10 16:06:29 beck Exp $ */ +/* $OpenBSD: spamd.c,v 1.137 2015/12/12 20:09:28 mmcc Exp $ */ /* * Copyright (c) 2015 Henning Brauer <henning@openbsd.org> @@ -777,10 +777,8 @@ closecon(struct con *cp) if (debug > 0) printf("%s connected for %lld seconds.\n", cp->addr, (long long)(tt - cp->s)); - if (cp->lists != NULL) { - free(cp->lists); - cp->lists = NULL; - } + free(cp->lists); + cp->lists = NULL; if (cp->blacklists != NULL) { blackcount--; free(cp->blacklists); |