X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=tools%2Fperf%2Futil%2Fdso.c;h=ee15db2be2f434035d0a7e5cbff0fc407bcda4bc;hb=8da49a33dda7294c1af508f8aa81cd638d0afd62;hp=d786cf6b0cfa65f2af5209cb97e36b71774d0d3b;hpb=535b6a122c6b43af5772ca39cbff7056749aae74;p=linux-2.6-microblaze.git diff --git a/tools/perf/util/dso.c b/tools/perf/util/dso.c index d786cf6b0cfa..ee15db2be2f4 100644 --- a/tools/perf/util/dso.c +++ b/tools/perf/util/dso.c @@ -1154,8 +1154,10 @@ struct map *dso__new_map(const char *name) struct map *map = NULL; struct dso *dso = dso__new(name); - if (dso) + if (dso) { map = map__new2(0, dso); + dso__put(dso); + } return map; }