+Mon Nov 11 17:03:16 1996 Barry Jaspan <bjaspan@mit.edu>
+
+ * kdb_cpw.c (cleanup_key_data): fix memory leak [krb5-kdc/163]
+ (add_key_pwd): fix memory leak [krb5-kdc/164]
+
Sat Nov 9 15:57:50 1996 Ezra Peisach <epeisach@mit.edu>
* t_krb5.conf: Dummy krb5.conf file from the krb5 library.
}
}
}
+ free(data);
}
/*
pwd.data = passwd;
pwd.length = strlen(passwd);
if (retval = krb5_string_to_key(context, &key_eblock, &key, &pwd,
- &key_salt.data))
- return(retval);
+ &key_salt.data)) {
+ if (key_salt.data.data)
+ free(key_salt.data.data);
+ return(retval);
+ }
if (retval = krb5_dbekd_encrypt_key_data(context, master_eblock, &key,
(const krb5_keysalt *)&key_salt,
kvno, &db_entry->key_data[db_entry->n_key_data-1])) {
+ if (key_salt.data.data)
+ free(key_salt.data.data);
krb5_xfree(key.contents);
return(retval);
}
+ if (key_salt.data.data)
+ free(key_salt.data.data);
krb5_xfree(key.contents);
}
return(retval);