free up the returned time
authorJohn Kohl <jtkohl@mit.edu>
Wed, 20 Feb 1991 11:18:05 +0000 (11:18 +0000)
committerJohn 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

index ce8c0c2089347b1b3d3e3aaf7bed4b4df2739a8f..e77d695b763a02720863a5063a1852c121051068 100644 (file)
@@ -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);
 }