introduce htmalloc
This commit is contained in:
@ -21,6 +21,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <syslog.h>
|
||||
#include "containers_public.h"
|
||||
#include "htmalloc.h"
|
||||
|
||||
|
||||
int test_worker1_init(cfgl_t *cfg, void **handle);
|
||||
int test_worker1_setup(void *handle, void **work_handle);
|
||||
@ -63,7 +65,7 @@ int test_worker1_init(cfgl_t *cfg, void **handle) {
|
||||
}
|
||||
|
||||
int test_worker1_setup(void *handle, void **work_handle) {
|
||||
test_worker1_handle_t *twh = (test_worker1_handle_t*)malloc(sizeof(test_worker1_handle_t));
|
||||
test_worker1_handle_t *twh = (test_worker1_handle_t*)htmalloc(sizeof(test_worker1_handle_t));
|
||||
twh->counter = 0;
|
||||
*work_handle = twh;
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user