struct notification_thread_handle *handle;
struct lttng_pipe *event_pipe = NULL;
- handle = (notification_thread_handle *) zmalloc(sizeof(*handle));
+ handle = zmalloc<notification_thread_handle>();
if (!handle) {
goto end;
}
bool is_root = !getuid();
char *sock_path;
- sock_path = (char *) zmalloc(LTTNG_PATH_MAX);
+ sock_path = calloc<char>(LTTNG_PATH_MAX);
if (!sock_path) {
goto error;
}