summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Kohl <jtkohl@mit.edu>1991-02-20 11:18:05 +0000
committerJohn Kohl <jtkohl@mit.edu>1991-02-20 11:18:05 +0000
commit4691ebea8b1fe72af12bb8ff63a96d2ad45dc246 (patch)
treeafed6e2447a8280118ce4c651089788470e0515a /src
parent76a41c8bbb96796f4b55d88dab5c4df2a7348bf8 (diff)
free up the returned time
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1733 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/lib/krb5/asn.1/g2unix.c3
1 files changed, 3 insertions, 0 deletions
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);
}