From: Arnaldo Carvalho de Melo Date: Mon, 1 Jun 2009 20:50:57 +0000 (-0300) Subject: perf_counter tools: Add missing rb_erase in dso__delete_symbols X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c8c96525f3c25f43a4fa230e293c4976c0c36cc1;p=linux-beck.git perf_counter tools: Add missing rb_erase in dso__delete_symbols Signed-off-by: Arnaldo Carvalho de Melo Cc: Mike Galbraith Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Steven Rostedt LKML-Reference: <20090601205057.GB7805@ghostprotocols.net> Signed-off-by: Ingo Molnar --- diff --git a/Documentation/perf_counter/util/symbol.c b/Documentation/perf_counter/util/symbol.c index 31e8fae58426..039931fcb1b5 100644 --- a/Documentation/perf_counter/util/symbol.c +++ b/Documentation/perf_counter/util/symbol.c @@ -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); } }