perf_counter tools: Add missing rb_erase in dso__delete_symbols
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 1 Jun 2009 20:50:57 +0000 (17:50 -0300)
committerIngo Molnar <mingo@elte.hu>
Tue, 2 Jun 2009 01:40:58 +0000 (03:40 +0200)
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <20090601205057.GB7805@ghostprotocols.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Documentation/perf_counter/util/symbol.c

index 31e8fae584264a0bd8484f013be6639fbd385ffb..039931fcb1b547fbc13981b58d8af19a88b3fb4e 100644 (file)
@@ -58,6 +58,7 @@ static void dso__delete_symbols(struct dso *self)
        while (next) {
                pos = rb_entry(next, struct symbol, rb_node);
                next = rb_next(&pos->rb_node);
+               rb_erase(&pos->rb_node, &self->syms);
                symbol__delete(pos, self->sym_priv_size);
        }
 }