Re: [PATCH v2 1/2] perf tools: Fix potential memory leaks in perf events parser

From: Markus Elfring
Date: Thu Jun 11 2020 - 14:51:25 EST


> Fix memory leak of in function parse_events_term__sym_hw()
> and parse_events_term__clone() when error occur.

How do you think about a wording variant like the following?

Release a configuration object after a string duplication failed.

Regards,
Markus