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