commit | d1c2f87c9a8f79fa8816bbe7de98da38eae2be5e | [log] [tgz] |
---|---|---|
author | Lee Jones <lee.jones@linaro.org> | Wed Mar 23 14:43:42 2016 +0000 |
committer | Jassi Brar <jaswinder.singh@linaro.org> | Tue Apr 12 13:28:30 2016 +0530 |
tree | f9f90547b42c81aedfbab20531213dfde6e465e7 | |
parent | 17f5f28ffa6e81461a569290ae802a9b05a89072 [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 <dan.carpenter@oracle.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>