aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-26 13:21:21 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-26 13:21:21 +0000
commitd59e69783b91feb5d3ee5d2ba802c279ecf021c5 (patch)
tree3757e936897981afc9136dd3cff7cf8981a3d89a /driver.c
parente700d27f62f10357b82737d8086982b31f5aa652 (diff)
downloadfetchmail-d59e69783b91feb5d3ee5d2ba802c279ecf021c5.tar.gz
fetchmail-d59e69783b91feb5d3ee5d2ba802c279ecf021c5.tar.bz2
fetchmail-d59e69783b91feb5d3ee5d2ba802c279ecf021c5.zip
Include mx.h, fix a memory leak.
svn path=/trunk/; revision=395
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/driver.c b/driver.c
index 888dae4d..6cb18cd8 100644
--- a/driver.c
+++ b/driver.c
@@ -838,8 +838,12 @@ struct method *proto; /* protocol method table */
/* we may need to get sizes in order to check message limits */
msgsizes = (int *)NULL;
if (!ctl->fetchall && proto->getsizes && ctl->limit)
- if ((msgsizes = (proto->getsizes)(socket, count)) == (int *)NULL)
+ {
+ msgsizes = (int *)alloca(sizeof(int) * count);
+
+ if ((ok = (proto->getsizes)(socket, count, msgsizes)) != 0)
return(PS_ERROR);
+ }
if (check_only)
{