less leaks

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3833 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-11-09 01:18:20 +00:00
parent c1dbb62b5d
commit af364bca96
10 changed files with 139 additions and 116 deletions

View File

@@ -80,9 +80,11 @@ kadmind_dispatch(void *kadm_handle, krb5_storage *sp)
ret = kadm5_get_principal(kadm_handle, princ, &ent, mask);
sp->seek(sp, 0, SEEK_SET);
krb5_store_int32(sp, ret);
if(ret == 0)
if(ret == 0){
kadm5_store_principal_ent(sp, &ent);
kadm5_free_principal_ent(kadm_handle, &ent);
kadm5_free_principal_ent(kadm_handle, &ent);
}
krb5_free_principal(context->context, princ);
break;
}
case kadm_delete:{