Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Fix a memory leak.

2013-09-24 Thread Ben Pfaff
On Mon, Sep 23, 2013 at 01:25:25PM -0700, Ben Pfaff wrote: > On Mon, Sep 23, 2013 at 10:57:22AM -0700, Jarno Rajahalme wrote: > > The "key" member in struct flow_miss refers to memory held by the "struct > > upcall", hence the upcalls should be freed only after the flow misses are > > processed b

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Fix a memory leak.

2013-09-23 Thread Ben Pfaff
On Mon, Sep 23, 2013 at 10:57:22AM -0700, Jarno Rajahalme wrote: > The "key" member in struct flow_miss refers to memory held by the "struct > upcall", hence the upcalls should be freed only after the flow misses are > processed by the main thread. How about this instead: > > Free upcalls af

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Fix a memory leak.

2013-09-23 Thread Alex Wang
Thanks for your review, I wasn't aware of that. I'd very much like to review this patch. Still i have few questions, could you ping me when you are available? Thanks, Alex Wang, On Mon, Sep 23, 2013 at 10:57 AM, Jarno Rajahalme wrote: > Alex, > > The "key" member in struct flow_miss refers to

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Fix a memory leak.

2013-09-23 Thread Jarno Rajahalme
Alex, The "key" member in struct flow_miss refers to memory held by the "struct upcall", hence the upcalls should be freed only after the flow misses are processed by the main thread. How about this instead: Free upcalls after they are used. Signed-off-by: Jarno Rajahalme --- ofproto/ofp

[ovs-dev] [PATCH] ofproto-dpif-upcall: Fix a memory leak.

2013-09-23 Thread Alex Wang
This commit fixes a memory leak in ofproto-dpif-upcall module. The memory leak is caused by not freeing the 'struct upcall's. Signed-off-by: Alex Wang --- ofproto/ofproto-dpif-upcall.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/ofproto/ofproto-dpif-upcall.c b/ofproto/ofproto-dp