Changes in kernel/generic/src/synch/syswaitq.c [6874bd2:e394c196] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/synch/syswaitq.c
r6874bd2 re394c196 45 45 46 46 #include <stdint.h> 47 #include <stdlib.h>48 47 49 48 static slab_cache_t *waitq_cache; … … 96 95 waitq_initialize(wq); 97 96 98 kobject_t *kobj = (kobject_t *) malloc(sizeof(kobject_t));97 kobject_t *kobj = kobject_alloc(0); 99 98 if (!kobj) { 100 99 slab_free(waitq_cache, wq); … … 107 106 if (rc != EOK) { 108 107 slab_free(waitq_cache, wq); 109 free(kobj);108 kobject_free(kobj); 110 109 return (sys_errno_t) rc; 111 110 } … … 114 113 if (rc != EOK) { 115 114 cap_free(TASK, handle); 116 free(kobj);115 kobject_free(kobj); 117 116 slab_free(waitq_cache, wq); 118 117 return (sys_errno_t) rc;
Note:
See TracChangeset
for help on using the changeset viewer.