diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c index ee9c37efdd36d15de2ebfc5240e4c3ae8761d897..320b15178e95533461a55a54aade1736f88ed404 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, return -1; curr_map = map__new2(pos->start, dso, map->type); - if (map == NULL) { + if (curr_map == NULL) { dso__delete(dso); return -1; }