Implement kernctl_syscall_mask
[lttng-tools.git] / src / lib / lttng-ctl / filter / filter-visitor-generate-bytecode.c
index 7d62757477febbcddd0a88e8f4524d74c74682a9..4dd52d8d0eed988a7c97e88bd5dc80449b0480fb 100644 (file)
@@ -22,7 +22,8 @@
 #include <stdlib.h>
 #include <string.h>
 #include <errno.h>
-#include "align.h"
+#include <common/align.h>
+
 #include "filter-bytecode.h"
 #include "filter-ir.h"
 #include "filter-ast.h"
@@ -520,6 +521,10 @@ int recursive_visit_gen_bytecode(struct filter_parser_ctx *ctx,
 LTTNG_HIDDEN
 void filter_bytecode_free(struct filter_parser_ctx *ctx)
 {
+       if (!ctx) {
+               return;
+       }
+
        if (ctx->bytecode) {
                free(ctx->bytecode);
                ctx->bytecode = NULL;
This page took 0.024206 seconds and 4 git commands to generate.