#include <libxml/parser.h>
#include <lttng/lttng-error.h>
-#include <common/macros.h>
-
-#include <common/macros.h>
+#include <common/macros.hpp>
struct validation_ctx {
xmlSchemaParserCtxtPtr parser_ctx;
ret = CMD_SUCCESS;
end:
+ if (doc) {
+ xmlFreeDoc(doc);
+ }
return ret;
-
-
}
+
int main(int argc, char **argv)
{
int ret;
- struct validation_ctx ctx = { 0 };
+ struct validation_ctx ctx = {};
/* Check if we have all argument */
if (argc < 3) {