Re: [PATCH v4 1/2] net/colo-compare.c: Fix memory leak in packet_enqueue()

2020-04-05 Thread Lukas Straub
On Sat, 28 Mar 2020 20:46:45 +0800 Derek Su wrote: > The patch is to fix the "pkt" memory leak in packet_enqueue(). > The allocated "pkt" needs to be freed if the colo compare > primary or secondary queue is too big. > > Signed-off-by: Derek Su Looks good and works well in my tests.

RE: [PATCH v4 1/2] net/colo-compare.c: Fix memory leak in packet_enqueue()

2020-03-30 Thread Zhang, Chen
> -Original Message- > From: Derek Su > Sent: Saturday, March 28, 2020 8:47 PM > To: qemu-devel@nongnu.org > Cc: Zhang, Chen ; lizhij...@cn.fujitsu.com; > jasow...@redhat.com; ctch...@qnap.com; chy...@qnap.com; > jwsu1...@gmail.com; Derek Su > Subject:

[PATCH v4 1/2] net/colo-compare.c: Fix memory leak in packet_enqueue()

2020-03-28 Thread Derek Su
The patch is to fix the "pkt" memory leak in packet_enqueue(). The allocated "pkt" needs to be freed if the colo compare primary or secondary queue is too big. Signed-off-by: Derek Su --- net/colo-compare.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff