From: Ben Pfaff Date: Wed, 4 Sep 2013 19:39:19 +0000 (-0700) Subject: flow: Fix memory leak in minimask_move(). X-Git-Tag: sliver-openvswitch-2.0.90-1~16^2~35 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=a24de7eecaefbad2967bb093e4a12c9dbb9d9d62;p=sliver-openvswitch.git flow: Fix memory leak in minimask_move(). Found by valgrind. Signed-off-by: Ben Pfaff Acked-by: Ethan Jackson --- diff --git a/lib/flow.c b/lib/flow.c index 826367217..0e7c493a0 100644 --- a/lib/flow.c +++ b/lib/flow.c @@ -1373,7 +1373,7 @@ minimask_clone(struct minimask *dst, const struct minimask *src) void minimask_move(struct minimask *dst, struct minimask *src) { - miniflow_clone(&dst->masks, &src->masks); + miniflow_move(&dst->masks, &src->masks); } /* Initializes 'dst_' as the bit-wise "and" of 'a_' and 'b_'.