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é <[email protected]>
Signed-off-by: Li Zhijian <[email protected]>
---
V3: allocte further resource when we can't fail # Philippe

Thanks for the v3!

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>

V2: Delete unnecesarry check
---
  hw/cxl/cxl-host.c | 12 ++++++------
  1 file changed, 6 insertions(+), 6 deletions(-)


Reply via email to