bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH v3 0/2] Fixing memory leaks in perf events parser
       [not found] <20200615013614.8646-1-chenwandun@huawei.com>
@ 2020-06-15  8:30 ` Markus Elfring
       [not found] ` <20200615013614.8646-2-chenwandun@huawei.com>
       [not found] ` <20200615013614.8646-3-chenwandun@huawei.com>
  2 siblings, 0 replies; 3+ messages in thread
From: Markus Elfring @ 2020-06-15  8:30 UTC (permalink / raw)
  To: Chen Wandun, Cheng Jian, netdev, bpf
  Cc: linux-kernel, Arnaldo Carvalho de Melo, Ingo Molnar, Peter Zijlstra

> fix some memleaks in parse_events_term__sym_hw and parse_events_term__clone.

Can it be more appropriate to refer to the term “memory leak” in consistent ways?


> v1 ==> v2
> 1. split into two patches

Corresponding development consequences can become more interesting.


> v2 ==> v3
> add more commit log.
>
> Chen Wandun (1):
>   perf tools: fix potential memleak in perf events parser
>
> Cheng Jian (1):
>   perf tools: fix potential memleak in perf events parser
>
>  tools/perf/util/parse-events.c | 51 ++++++++++++++++++++++++++++------

Are there any chances to make the change distinction a bit easier
by adjusting such commit subjects?

Regards,
Markus

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v3 1/2] perf tools: Fix potential memory leaks in perf events parser
       [not found] ` <20200615013614.8646-2-chenwandun@huawei.com>
@ 2020-06-15  8:45   ` Markus Elfring
  0 siblings, 0 replies; 3+ messages in thread
From: Markus Elfring @ 2020-06-15  8:45 UTC (permalink / raw)
  To: Cheng Jian, Chen Wandun, netdev, bpf
  Cc: linux-kernel, Arnaldo Carvalho de Melo, Ingo Molnar, Peter Zijlstra

> Fix memory leak of in function parse_events_term__sym_hw()
> and parse_events_term__clone() when string duplication failed.

Can a wording like “Fix memory leaks in …” be more appropriate for
the final commit message?
Would you find any other description variant more pleasing?

Regards,
Markus

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v3 2/2] perf tools: Fix potential memory leaks in perf events parser
       [not found] ` <20200615013614.8646-3-chenwandun@huawei.com>
@ 2020-06-15  8:54   ` Markus Elfring
  0 siblings, 0 replies; 3+ messages in thread
From: Markus Elfring @ 2020-06-15  8:54 UTC (permalink / raw)
  To: Chen Wandun, Cheng Jian, netdev, bpf
  Cc: linux-kernel, Arnaldo Carvalho de Melo, Ingo Molnar, Peter Zijlstra

> Fix potential memory leak. Function new_term may return error, so
> it is need to free memory when the return value is negative.

I hope that a typo will be avoided for the final commit message.
Would you find any other description variant more pleasing?

Regards,
Markus

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-06-15  8:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20200615013614.8646-1-chenwandun@huawei.com>
2020-06-15  8:30 ` [PATCH v3 0/2] Fixing memory leaks in perf events parser Markus Elfring
     [not found] ` <20200615013614.8646-2-chenwandun@huawei.com>
2020-06-15  8:45   ` [PATCH v3 1/2] perf tools: Fix potential " Markus Elfring
     [not found] ` <20200615013614.8646-3-chenwandun@huawei.com>
2020-06-15  8:54   ` [PATCH v3 2/2] " Markus Elfring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).