From: John Kohl Date: Wed, 20 Feb 1991 11:18:05 +0000 (+0000) Subject: free up the returned time X-Git-Tag: krb5-1.0-alpha4~239 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4691ebea8b1fe72af12bb8ff63a96d2ad45dc246;p=krb5.git free up the returned time git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1733 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/asn.1/g2unix.c b/src/lib/krb5/asn.1/g2unix.c index ce8c0c208..e77d695b7 100644 --- a/src/lib/krb5/asn.1/g2unix.c +++ b/src/lib/krb5/asn.1/g2unix.c @@ -46,12 +46,15 @@ register int *error; utcp = str2gent(tmp, strlen(tmp)); if (utcp == NULLUTC) { *error = EINVAL; + free(tmp); return(0); } retval = gtime(ut2tm(utcp)); if (retval == NOTOK) { *error = EINVAL; + free(tmp); return(0); } + free(tmp); return(retval); }