Re: [PATCH v2 2/2] perf parse-event: Fix cpu map leaks

2020-09-17 Thread Arnaldo Carvalho de Melo
Em Thu, Sep 17, 2020 at 03:02:19PM +0900, Namhyung Kim escreveu: > Like evlist cpu map, evsel's cpu map should have a proper refcount. > As it's created with a refcount, we don't need to get an extra count. > Thanks to Arnaldo for the simpler suggestion. > > This fixes the following ASAN report:

[PATCH v2 2/2] perf parse-event: Fix cpu map leaks

2020-09-16 Thread Namhyung Kim
Like evlist cpu map, evsel's cpu map should have a proper refcount. As it's created with a refcount, we don't need to get an extra count. Thanks to Arnaldo for the simpler suggestion. This fixes the following ASAN report: Direct leak of 840 byte(s) in 70 object(s) allocated from: #0 0x7fe36