diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-10-08 05:31:22 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-10-08 05:31:22 +0000 |
commit | 632f1335893998041f66a25d3809ad719f8557b7 (patch) | |
tree | 4530ed420648800a93d1ccded966c7ef941eb3a6 /driver.c | |
parent | e5cbf59f31c46a8da51b71b16674474be9fe319b (diff) | |
download | fetchmail-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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))); |