From 4691ebea8b1fe72af12bb8ff63a96d2ad45dc246 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Wed, 20 Feb 1991 11:18:05 +0000 Subject: [PATCH] free up the returned time git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1733 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/asn.1/g2unix.c | 3 +++ 1 file changed, 3 insertions(+) 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); } -- 2.26.2