#include "compat/compiler.h"
#include <babeltrace2/types.h>
#include "cpp-common/exc.hpp"
+#include "cpp-common/glib-up.hpp"
#include "plugins/common/muxing/muxing.h"
#include "plugins/common/param-validation/param-validation.h"
status = BT_COMPONENT_CLASS_INITIALIZE_METHOD_STATUS_MEMORY_ERROR;
goto error;
} else if (validation_status == BT_PARAM_VALIDATION_STATUS_VALIDATION_ERROR) {
+ bt2_common::GCharUP errorFreer {validation_error};
BT_CLOGE_APPEND_CAUSE("%s", validation_error);
status = BT_COMPONENT_CLASS_INITIALIZE_METHOD_STATUS_ERROR;
goto error;
delete lttng_live;
lttng_live = NULL;
end:
- g_free(validation_error);
-
*component = lttng_live;
return status;
}