From bab3c0b820111eaf50878863f82e479fea4fa8a3 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 24 Sep 2013 14:22:14 -0700 Subject: [PATCH] ofproto: Fix memory leak in rule_actions_unref(). Found by valgrind. Signed-off-by: Ben Pfaff Acked-by: Justin Pettit --- ofproto/ofproto.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.43.0