aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/perf/util/symbol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c
index ee9c37efdd36..320b15178e95 100644
--- a/tools/perf/util/symbol.c
+++ b/tools/perf/util/symbol.c
@@ -527,7 +527,7 @@ static int dso__split_kallsyms(struct dso *self, struct map *map,
527 return -1; 527 return -1;
528 528
529 curr_map = map__new2(pos->start, dso, map->type); 529 curr_map = map__new2(pos->start, dso, map->type);
530 if (map == NULL) { 530 if (curr_map == NULL) {
531 dso__delete(dso); 531 dso__delete(dso);
532 return -1; 532 return -1;
533 } 533 }