ret = LTTNG_ERR_FATAL;
goto error_asprintf;
}
- new_session->start_consumer = 1;
- } else {
- /* No path indicates that there is no use for a consumer. */
- new_session->start_consumer = 0;
- new_session->path[0] = '\0';
}
/* Init kernel session */
error:
error_asprintf:
- if (new_session != NULL) {
- free(new_session);
- }
+ free(new_session);
error_malloc:
return ret;