summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2005-03-11 23:45:46 +0000
committerBob Beck <beck@cvs.openbsd.org>2005-03-11 23:45:46 +0000
commita08e78de9e6f018a2b197b64972b88955b33c9df (patch)
tree147c3eb565c944f9d0d89c3b9a995bafb808c1fd
parentecf7c0b544a8eafda8c1d30029af09b8cd99627a (diff)
freeaddrinfo() isn't needed on the error path from getaddrinfo().
ok claudio@
-rw-r--r--usr.sbin/spamdb/spamdb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/spamdb/spamdb.c b/usr.sbin/spamdb/spamdb.c
index a1683aa4fdf..b6508dfd601 100644
--- a/usr.sbin/spamdb/spamdb.c
+++ b/usr.sbin/spamdb/spamdb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spamdb.c,v 1.13 2005/03/11 23:27:12 beck Exp $ */
+/* $OpenBSD: spamdb.c,v 1.14 2005/03/11 23:45:45 beck Exp $ */
/*
* Copyright (c) 2004 Bob Beck. All rights reserved.
@@ -60,7 +60,6 @@ dbupdate(char *dbname, char *ip, int add, int type)
if (type == TRAPHIT || type == WHITE) {
if (getaddrinfo(ip, NULL, &hints, &res) != 0) {
warnx("invalid ip address %s", ip);
- freeaddrinfo(res);
goto bad;
}
freeaddrinfo(res);