aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorLee Jones <[email protected]>2016-03-23 14:43:42 +0000
committerJassi Brar <[email protected]>2016-04-12 13:28:30 +0530
commitd1c2f87c9a8f79fa8816bbe7de98da38eae2be5e (patch)
treef9f90547b42c81aedfbab20531213dfde6e465e7 /tools/perf/util/trace-event-scripting.c
parent17f5f28ffa6e81461a569290ae802a9b05a89072 (diff)
mailbox: mailbox-test: Prevent memory leak
If we set the Signal twice or more, without using it as part of a message, memory will be re-allocated and the pointer over-written. Prevent this potential leak by only allocating memory when there isn't any already. Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Lee Jones <[email protected]> Signed-off-by: Jassi Brar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions