aboutsummaryrefslogtreecommitdiff
path: root/src/tcb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tcb.c')
-rw-r--r--src/tcb.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/tcb.c b/src/tcb.c
index f5b1652..1281da2 100644
--- a/src/tcb.c
+++ b/src/tcb.c
@@ -107,7 +107,7 @@ static stat_t __init_free_thread(struct tcb *t)
if (setup_rpc_stack(t)) {
destroy_rpc_stack(t);
- destroy_vmem(t->rpc.vmem);
+ destroy_rpcmem(t->rpc.vmem);
destroy_vmem(t->proc.vmem);
return ERR_OOMEM;
}
@@ -135,7 +135,7 @@ static stat_t __init_owned_thread(struct tcb *p, struct tcb *t)
if (setup_rpc_stack(t)) {
destroy_rpc_stack(t);
- destroy_vmem(t->rpc.vmem);
+ destroy_rpcmem(t->rpc.vmem);
return ERR_OOMEM;
}
@@ -252,9 +252,7 @@ stat_t destroy_thread(struct tcb *t)
/* free memory backing rpc stack */
destroy_rpc_stack(t);
-
- /* free rpc vmem */
- destroy_vmem(t->rpc.vmem);
+ destroy_rpcmem(t->rpc.vmem);
unqueue_ipi(t);