Message ID | 1629375552-51897-4-git-send-email-guohanjun@huawei.com |
---|---|
State | New |
Headers | show |
Series | Collected perf patches for stable 5.10.y | expand |
diff --git a/tools/perf/util/vdso.c b/tools/perf/util/vdso.c index 3cc91ad..43beb16 100644 --- a/tools/perf/util/vdso.c +++ b/tools/perf/util/vdso.c @@ -133,6 +133,8 @@ static struct dso *__machine__addnew_vdso(struct machine *machine, const char *s if (dso != NULL) { __dsos__add(&machine->dsos, dso); dso__set_long_name(dso, long_name, false); + /* Put dso here because __dsos_add already got it */ + dso__put(dso); } return dso;