From 72f55421fb61b750512f324d284b30e3e67e36e0 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 13 Mar 2024 22:33:38 +0100 Subject: kernel/malloc: slight rework (it's still bad), store more metadata --- src/kernel/handle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/handle.c') diff --git a/src/kernel/handle.c b/src/kernel/handle.c index 51a95be..ca4c4c4 100644 --- a/src/kernel/handle.c +++ b/src/kernel/handle.c @@ -7,7 +7,7 @@ #include Handle *handle_init(enum handle_type type) { - Handle *h = kzalloc(sizeof *h); + Handle *h = kzalloc(sizeof *h, "handle"); h->type = type; h->refcount = 1; return h; -- cgit v1.2.3