Commit d74c896b authored by Namhyung Kim's avatar Namhyung Kim Committed by Arnaldo Carvalho de Melo

perf symbols: Fix error path on symbol__init()

The order of freeing comm_list and dso_list should be reversed.

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1323703017-6060-4-git-send-email-namhyung@gmail.comSigned-off-by: default avatarNamhyung Kim <namhyung@gmail.com>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 2b600f95
...@@ -2604,10 +2604,10 @@ int symbol__init(void) ...@@ -2604,10 +2604,10 @@ int symbol__init(void)
symbol_conf.initialized = true; symbol_conf.initialized = true;
return 0; return 0;
out_free_dso_list:
strlist__delete(symbol_conf.dso_list);
out_free_comm_list: out_free_comm_list:
strlist__delete(symbol_conf.comm_list); strlist__delete(symbol_conf.comm_list);
out_free_dso_list:
strlist__delete(symbol_conf.dso_list);
return -1; return -1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment