blob: 006e32a1c5b11df6e225df0144c779c10b22de6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--- hash.c
+++ hash.c
@@ -7,12 +7,12 @@
int (*hash_fun)(),(*eq_fun)();
mgr_ptr mgr;
{
- hash_ptr res = (hash_ptr)malloc(sizeof(struct hash));
+ hash_ptr res = (hash_ptr)smv_malloc(sizeof(struct hash));
res->size = init_size;
res->hash_fun = hash_fun;
res->eq_fun = eq_fun;
res->mgr = mgr;
- res->tab = (rec_ptr *)malloc(init_size * sizeof(rec_ptr));
+ res->tab = (rec_ptr *)smv_malloc(init_size * sizeof(rec_ptr));
bzero(res->tab,init_size * sizeof(rec_ptr));
return(res);
}
|