From: David Goulet Date: Tue, 8 Nov 2011 17:28:34 +0000 (-0500) Subject: Fix useless context hashtable size and segfault on destroy X-Git-Tag: v2.0-pre15~146 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e03e333243078aa3a78a77b1226c0ded7673eeff;p=lttng-tools.git Fix useless context hashtable size and segfault on destroy Signed-off-by: David Goulet --- diff --git a/lttng-sessiond/trace-ust.c b/lttng-sessiond/trace-ust.c index a1715f253..f52b0b45f 100644 --- a/lttng-sessiond/trace-ust.c +++ b/lttng-sessiond/trace-ust.c @@ -221,7 +221,7 @@ struct ltt_ust_event *trace_ust_create_event(struct lttng_event *ev) hashtable_node_init(&lue->node, (void *) lue->attr.name, strlen(lue->attr.name)); /* Alloc context hash tables */ - lue->ctx = hashtable_new_str(5); + lue->ctx = hashtable_new_str(0); return lue;