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-setup | |
parent | 20a03a1930fdecc80cfda559c3bb08094c7e2a82 (diff) |
Remove NULL-checks before free(). ok tb@
Diffstat (limited to 'libexec/spamd-setup')
-rw-r--r-- | libexec/spamd-setup/spamd-setup.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libexec/spamd-setup/spamd-setup.c b/libexec/spamd-setup/spamd-setup.c index d12c84a03ee..348aad5c83a 100644 --- a/libexec/spamd-setup/spamd-setup.c +++ b/libexec/spamd-setup/spamd-setup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spamd-setup.c,v 1.46 2015/06/03 02:24:36 millert Exp $ */ +/* $OpenBSD: spamd-setup.c,v 1.47 2015/12/12 20:09:28 mmcc Exp $ */ /* * Copyright (c) 2003 Bob Beck. All rights reserved. @@ -511,8 +511,7 @@ add_blacklist(struct bl *bl, size_t *blc, size_t *bls, gzFile gzf, int white) if (bu == 0) errno = EIO; bldone: - if (buf) - free(buf); + free(buf); if (serrno) errno = serrno; return (bl); |