summaryrefslogtreecommitdiffstats
path: root/src/windows/identity/util/hashtable.c
diff options
context:
space:
mode:
authorJeffrey Altman <jaltman@secure-endpoints.com>2005-11-29 22:05:23 +0000
committerJeffrey Altman <jaltman@secure-endpoints.com>2005-11-29 22:05:23 +0000
commita15641c1710ccb204f6dc66c539c42b7617a2ea9 (patch)
tree747a531f34cc909a1f30f91893366e4ac4d99ffc /src/windows/identity/util/hashtable.c
parent52e7daa850554e507f7df50e77041fd67ddbcca1 (diff)
downloadkrb5-a15641c1710ccb204f6dc66c539c42b7617a2ea9.tar.gz
krb5-a15641c1710ccb204f6dc66c539c42b7617a2ea9.tar.xz
krb5-a15641c1710ccb204f6dc66c539c42b7617a2ea9.zip
KFW Network Identity Manager (Beta 2)
All features completed except for: * Debug Window * KRB5.INI (aka Realm) Editor * Column Selection * Graphics are incomplete * Documentation is incomplete ticket: new status: resolved component: windows target_version: 1.4.4 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17516 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/windows/identity/util/hashtable.c')
-rw-r--r--src/windows/identity/util/hashtable.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/windows/identity/util/hashtable.c b/src/windows/identity/util/hashtable.c
index 41f785a95..d1b02e64f 100644
--- a/src/windows/identity/util/hashtable.c
+++ b/src/windows/identity/util/hashtable.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004 Massachusetts Institute of Technology
+ * Copyright (c) 2005 Massachusetts Institute of Technology
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
@@ -24,6 +24,7 @@
/* $Id$ */
+#include<perfstat.h>
#include<hashtable.h>
#include<stdlib.h>
@@ -35,7 +36,7 @@ KHMEXP hashtable * KHMAPI hash_new_hashtable(khm_int32 n,
{
hashtable * h;
- h = malloc(sizeof(hashtable));
+ h = PMALLOC(sizeof(hashtable));
h->n = n;
h->addr = addr;
@@ -57,12 +58,12 @@ KHMEXP void KHMAPI hash_del_hashtable(hashtable * h) {
while(b) {
if(h->delr)
h->delr(b->key, b->data);
- free(b);
+ PFREE(b);
LPOP(&h->bins[i], &b);
}
}
- free(h);
+ PFREE(h);
}
KHMEXP void KHMAPI hash_add(hashtable * h, void * key, void * data) {
@@ -86,7 +87,7 @@ KHMEXP void KHMAPI hash_add(hashtable * h, void * key, void * data) {
}
if(!b) {
- b = malloc(sizeof(hash_bin));
+ b = PMALLOC(sizeof(hash_bin));
b->data = data;
b->key = key;
LINIT(b);
@@ -109,7 +110,7 @@ KHMEXP void KHMAPI hash_del(hashtable * h, void * key) {
LDELETE(&h->bins[hv], b);
if(h->delr)
h->delr(b->key, b->data);
- free(b);
+ PFREE(b);
break;
}
b = LNEXT(b);