From 227c6dfcb4dba958cebf8d5e51fbf01b03ce7341 Mon Sep 17 00:00:00 2001 From: pmf Date: Fri, 30 May 2008 15:15:27 +0000 Subject: [PATCH] state.c: free correctly softirq resource state git-svn-id: http://ltt.polymtl.ca/svn@2930 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttv/lttv/state.c | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- 2.34.1