aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-10-08 05:31:22 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-10-08 05:31:22 +0000
commit632f1335893998041f66a25d3809ad719f8557b7 (patch)
tree4530ed420648800a93d1ccded966c7ef941eb3a6 /driver.c
parente5cbf59f31c46a8da51b71b16674474be9fe319b (diff)
downloadfetchmail-632f1335893998041f66a25d3809ad719f8557b7.tar.gz
fetchmail-632f1335893998041f66a25d3809ad719f8557b7.tar.bz2
fetchmail-632f1335893998041f66a25d3809ad719f8557b7.zip
Use alloca where possible.
svn path=/trunk/; revision=2076
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/driver.c b/driver.c
index 92108768..732855dc 100644
--- a/driver.c
+++ b/driver.c
@@ -1633,7 +1633,7 @@ const char *canonical; /* server name */
Key_schedule schedule;
int rem;
- ticket = ((KTEXT) (malloc (sizeof (KTEXT_ST))));
+ ticket = ((KTEXT) (alloca (sizeof (KTEXT_ST))));
rem = (krb_sendauth (0L, socket, ticket, "pop",
canonical,
((char *) (krb_realmofhost (canonical))),
@@ -1644,7 +1644,6 @@ const char *canonical; /* server name */
((struct sockaddr_in *) 0),
((struct sockaddr_in *) 0),
"KPOPV0.1"));
- free (ticket);
if (rem != KSUCCESS)
{
error(0, -1, "kerberos error %s", (krb_get_err_text (rem)));