From: Ben Pfaff Date: Tue, 24 Sep 2013 21:22:14 +0000 (-0700) Subject: ofproto: Fix memory leak in rule_actions_unref(). X-Git-Tag: sliver-openvswitch-2.0.90-1~13^2~15 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=bab3c0b820111eaf50878863f82e479fea4fa8a3;p=sliver-openvswitch.git ofproto: Fix memory leak in rule_actions_unref(). Found by valgrind. Signed-off-by: Ben Pfaff Acked-by: Justin Pettit --- diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 1e5319a14..f305710d4 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -2487,6 +2487,7 @@ rule_actions_unref(struct rule_actions *actions) atomic_sub(&actions->ref_count, 1, &orig); if (orig == 1) { + free(actions->ofpacts); free(actions); } else { ovs_assert(orig != 0);