never clear about when to free

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2620 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-07-24 11:31:10 +00:00
parent e1a992cf7b
commit 85f5f471fb
2 changed files with 6 additions and 0 deletions

View File

@@ -64,7 +64,9 @@ DB_op(krb5_context context, HDB *db, hdb_entry *entry, int op)
key.size = data.length;
switch(op){
case 0:
#if 0
krb5_free_principal (context, entry->principal);
#endif
err = d->get(d, &key, &value, 0);
break;
case 1:
@@ -75,7 +77,9 @@ DB_op(krb5_context context, HDB *db, hdb_entry *entry, int op)
krb5_data_free(&data);
break;
case 2:
#if 0
krb5_free_principal (context, entry->principal);
#endif
err = d->del(d, &key, 0);
break;
}

View File

@@ -59,7 +59,9 @@ NDBM_fetch(krb5_context context, HDB *db, hdb_entry *entry)
krb5_data data;
hdb_principal2key(context, entry->principal, &data);
#if 0
krb5_free_principal (context, entry->principal);
#endif
key.dptr = data.data;
key.dsize = data.length;