From 44431460dd01279e6d40b36f5e670b8f3c4297ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 22 May 2008 11:37:20 +0000 Subject: [PATCH] Daemons are now spawned with "new", and thus they should be sent back using "delete", not free(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25603 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/kernel_daemon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/kernel_daemon.cpp b/src/system/kernel/kernel_daemon.cpp index 41e60c7179..6ce1712cbc 100644 --- a/src/system/kernel/kernel_daemon.cpp +++ b/src/system/kernel/kernel_daemon.cpp @@ -81,7 +81,7 @@ unregister_kernel_daemon(daemon_hook function, void* arg) if (daemon->function == function && daemon->arg == arg) { // found it! iterator.Remove(); - free(daemon); + delete daemon; return B_OK; } }