summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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);
}