projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76a41c8
)
free up the returned time
author
John Kohl
<jtkohl@mit.edu>
Wed, 20 Feb 1991 11:18:05 +0000
(11:18 +0000)
committer
John Kohl
<jtkohl@mit.edu>
Wed, 20 Feb 1991 11:18:05 +0000
(11:18 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1733
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/krb5/asn.1/g2unix.c
patch
|
blob
|
history
diff --git
a/src/lib/krb5/asn.1/g2unix.c
b/src/lib/krb5/asn.1/g2unix.c
index ce8c0c2089347b1b3d3e3aaf7bed4b4df2739a8f..e77d695b763a02720863a5063a1852c121051068 100644
(file)
--- 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);
}