|
| From: | Philippe Mathieu-Daudé |
| Subject: | Re: [PATCH v3] hw/cxl: Fix CFMW config memory leak |
| Date: | Wed, 31 May 2023 09:51:43 +0200 |
| User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 |
On 31/5/23 08:07, Li Zhijian wrote:
Allocate targets and targets[n] resources when all sanity checks are passed to avoid memory leaks. Suggested-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com> --- V3: allocte further resource when we can't fail # Philippe
Thanks for the v3! Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
V2: Delete unnecesarry check --- hw/cxl/cxl-host.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
| [Prev in Thread] | Current Thread | [Next in Thread] |