(create_random_entry): free the entry

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5757 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-03-25 03:35:20 +00:00
parent 433933f116
commit 388dbc5217

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 1998 Kungliga Tekniska H<>gskolan
* Copyright (c) 1997, 1998, 1999 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@@ -78,6 +78,7 @@ create_random_entry(krb5_principal princ, time_t max_life, time_t max_rlife,
ent.kvno = 1;
ret = kadm5_modify_principal(kadm_handle, &ent,
KADM5_ATTRIBUTES|KADM5_KVNO);
kadm5_free_principal_ent (kadm_handle, &ent);
if(ret)
return ret;
return 0;