X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust%2Flttng-filter.c;h=11e7e376a03006bec8fb2af8b86f95f16d53874a;hb=ff0f57289ff0e6be25424081fabbbfc0e3b1b565;hp=62a745f197c4ddc377a57bcd4eb7404bab21a614;hpb=21af05a99efabef4da5db10dfb41139873eb9692;p=lttng-ust.git diff --git a/liblttng-ust/lttng-filter.c b/liblttng-ust/lttng-filter.c index 62a745f1..11e7e376 100644 --- a/liblttng-ust/lttng-filter.c +++ b/liblttng-ust/lttng-filter.c @@ -254,7 +254,7 @@ int _lttng_filter_event_link_bytecode(struct lttng_event *event, runtime = zmalloc(runtime_alloc_len); if (!runtime) { ret = -ENOMEM; - goto link_error; + goto alloc_error; } runtime->p.bc = filter_bytecode; runtime->len = filter_bytecode->bc.reloc_offset; @@ -298,6 +298,7 @@ link_error: runtime->p.filter = lttng_filter_false; runtime->p.link_failed = 1; cds_list_add_rcu(&runtime->p.node, insert_loc); +alloc_error: dbg_printf("Linking failed.\n"); return ret; }