diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-01-24 23:39:29 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-01-24 23:39:29 +0000 |
commit | 07406195c57145ef29c17cf62e5fc940ad406a05 (patch) | |
tree | 088596c6445983fec0a39f8c4206dabc6394ef29 /libexec | |
parent | 79c96310c25bb5418cfc2f7bb80dcfc72eef300a (diff) |
plug potential memory leak; vincent ok
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/spamd/spamd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libexec/spamd/spamd.c b/libexec/spamd/spamd.c index 0bc75f949c2..27d25e6914a 100644 --- a/libexec/spamd/spamd.c +++ b/libexec/spamd/spamd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spamd.c,v 1.7 2003/01/05 23:10:16 deraadt Exp $ */ +/* $OpenBSD: spamd.c,v 1.8 2003/01/24 23:39:28 deraadt Exp $ */ /* * Copyright (c) 2002 Theo de Raadt. All rights reserved. @@ -317,9 +317,10 @@ handlew(struct con *cp, int one) int main(int argc, char *argv[]) { + fd_set *fdsr = NULL, *fdsw = NULL; struct sockaddr_in sin; struct passwd *pw; - int ch, s, s2, i; + int ch, s, s2, i, omax = 0; int sinlen, one = 1; u_short port = 8025; @@ -414,9 +415,8 @@ main(int argc, char *argv[]) printf("listening for incoming connections.\n"); while (1) { - fd_set *fdsr = NULL, *fdsw = NULL; struct timeval tv, *tvp; - int max = s, i, n, omax = 0; + int max = s, i, n; int writers; time(&t); |