guint new_nb = check_expand(ts->nb_syscalls, id);
if(likely(new_nb == ts->nb_syscalls))
return;
- expand_name_table(ts, &ts->syscall_names, ts->nb_syscalls, id);
+ expand_name_table(ts, &ts->syscall_names, ts->nb_syscalls, new_nb);
fill_name_table(ts, ts->syscall_names, ts->nb_syscalls, new_nb, "syscall");
/* Update the table size */
ts->nb_syscalls = new_nb;
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);