aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/user/process.c
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-02-14 12:29:22 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2015-02-14 12:29:22 +0100
commitba53137f1b687b1c9cbd66fbe306ed1bf6d0cccb (patch)
tree55cebfa7f54b14601eccbd1bf1f50e33ceee5d76 /src/kernel/user/process.c
parent630c28c3fd3297c7a0ea7ec7ad4417f521fdaa7f (diff)
downloadkogata-ba53137f1b687b1c9cbd66fbe306ed1bf6d0cccb.tar.gz
kogata-ba53137f1b687b1c9cbd66fbe306ed1bf6d0cccb.zip
Change hashtbl memory freeing method
Diffstat (limited to 'src/kernel/user/process.c')
-rw-r--r--src/kernel/user/process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/user/process.c b/src/kernel/user/process.c
index d1fdf32..2f3cac1 100644
--- a/src/kernel/user/process.c
+++ b/src/kernel/user/process.c
@@ -35,7 +35,7 @@ process_t *new_process(process_t *parent) {
process_t *proc = (process_t*)malloc(sizeof(process_t));
if (proc == 0) return 0;
- proc->filesystems = create_hashtbl(str_key_eq_fun, str_hash_fun, free, 0);
+ proc->filesystems = create_hashtbl(str_key_eq_fun, str_hash_fun, free_key);
if (proc->filesystems == 0) {
free(proc);
return 0;
@@ -43,7 +43,7 @@ process_t *new_process(process_t *parent) {
proc->pd = create_pagedir(proc_usermem_pf, proc);
if (proc->pd == 0) {
- delete_hashtbl(proc->filesystems, 0);
+ delete_hashtbl(proc->filesystems);
free(proc);
return 0;
}