Re: [Qemu-devel] [PATCH V4] net/colo-compare.c: Fix memory leak and code style issue.

2019-07-22 Thread Zhang, Chen
> -Original Message- > From: Peter Maydell [mailto:peter.mayd...@linaro.org] > Sent: Monday, July 22, 2019 9:19 PM > To: Zhang, Chen > Cc: Li Zhijian ; Jason Wang ; > qemu-dev ; Zhang Chen > Subject: Re: [PATCH V4] net/colo-compare.c: Fix memory leak and code style > issue. > > On Sun,

Re: [Qemu-devel] [PATCH V4] net/colo-compare.c: Fix memory leak and code style issue.

2019-07-22 Thread Peter Maydell
On Sun, 21 Jul 2019 at 10:04, Zhang Chen wrote: > > From: Zhang Chen > > This patch to fix the origin "char *data" memory leak, code style issue > and add necessary check here. > Reported-by: Coverity (CID 1402785) > > Signed-off-by: Zhang Chen > @@ -1008,21 +1019,24 @@ static void > compare_n

[Qemu-devel] [PATCH V4] net/colo-compare.c: Fix memory leak and code style issue.

2019-07-21 Thread Zhang Chen
From: Zhang Chen This patch to fix the origin "char *data" memory leak, code style issue and add necessary check here. Reported-by: Coverity (CID 1402785) Signed-off-by: Zhang Chen --- net/colo-compare.c | 28 +--- 1 file changed, 21 insertions(+), 7 deletions(-) diff