Thread (1 message) 1 message, 1 author, 2020-06-11

Re: [PATCH v2 2/2] perf tools: Improve exception handling in two functions of perf events parser

From: Markus Elfring <hidden>
Date: 2020-06-11 19:09:51
Also in: bpf, lkml

Fix potential memory leak. Function new_term may return error, so
it is need to free memory when the return value is negative.
How do you think about a wording variant like the following?

   Add jump targets so that a configuration object and a duplicated string
   are released after a call of the function “strdup” or “new_term” failed.

Regards,
Markus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help