Use ALLOC.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2522 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -53,7 +53,7 @@ db_fetch(krb5_context context, krb5_principal principal)
|
||||
if (ret) {
|
||||
return NULL;
|
||||
}
|
||||
ent = malloc(sizeof(*ent));
|
||||
ALLOC(ent);
|
||||
krb5_copy_principal(context, principal, &ent->principal);
|
||||
ret = db->fetch(context, db, ent);
|
||||
db->close(context, db);
|
||||
|
Reference in New Issue
Block a user