From: pmf Date: Fri, 30 May 2008 15:15:27 +0000 (+0000) Subject: state.c: free correctly softirq resource state X-Git-Tag: v0.12.20~559 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=227c6dfcb4dba958cebf8d5e51fbf01b03ce7341;p=lttv.git state.c: free correctly softirq resource state git-svn-id: http://ltt.polymtl.ca/svn@2930 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/lttv/state.c b/ltt/branches/poly/lttv/lttv/state.c index e5b4f9bf..b2fb55a3 100644 --- a/ltt/branches/poly/lttv/lttv/state.c +++ b/ltt/branches/poly/lttv/lttv/state.c @@ -1735,6 +1735,12 @@ static void state_saved_free(LttvTraceState *self, LttvAttribute *container) g_assert(type == LTTV_POINTER); lttv_state_free_irq_states(*(value.v_pointer), nb_irqs); + /* free softirq resource states */ + nb_softirqs = self->nb_irqs; + type = lttv_attribute_get_by_name(container, LTTV_STATE_RESOURCE_SOFT_IRQS, &value); + g_assert(type == LTTV_POINTER); + lttv_state_free_soft_irq_states(*(value.v_pointer), nb_softirqs); + /* free the blkdev states */ type = lttv_attribute_get_by_name(container, LTTV_STATE_RESOURCE_BLKDEVS, &value); g_assert(type == LTTV_POINTER);