context_type_string = get_ust_context_type_string(
ctx->ctx.ctx);
if (!context_type_string) {
- ERR("Unsupported UST context type.")
- ret = LTTNG_ERR_INVALID;
+ ERR("Unsupported UST context type.");
+ ret = LTTNG_ERR_INVALID;
goto end;
}
}
}
+ if (file_opened) {
+ ret = close(fd);
+ if (ret) {
+ PERROR("Closing XML session configuration");
+ }
+ }
+
return ret;
}