diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-10-26 13:21:21 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-10-26 13:21:21 +0000 |
commit | d59e69783b91feb5d3ee5d2ba802c279ecf021c5 (patch) | |
tree | 3757e936897981afc9136dd3cff7cf8981a3d89a /driver.c | |
parent | e700d27f62f10357b82737d8086982b31f5aa652 (diff) | |
download | fetchmail-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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) { |