ofproto: Fix memory leak in ofproto_rule_delete().
authorJarno Rajahalme <jrajahalme@nicira.com>
Tue, 9 Jun 2015 22:24:33 +0000 (15:24 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Tue, 9 Jun 2015 22:24:33 +0000 (15:24 -0700)
commitd426c66caddf195ab546ec0f5565b530d215e1f9
treebe2940277069b4753bc421483c98d6072a5c5e63
parent4c0e587ce4408ff8181f7b094a3ef13ad273f20b
ofproto: Fix memory leak in ofproto_rule_delete().

Commit 401aa90e33be (ofproto: Fix memory leak in flow deletion.) fixed
the memory leak when a rule is deleted, but failed to do the same when
all rules in a bridge are deleted just before the bridge itself is
deleted.

This patch adds the necessary unref to ofproto_rule_delete().

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto.c