]> git.proxmox.com Git - mirror_ovs.git/commit
ofproto-dpif-xlate: Fix memory leak in execute_controller_action.
authorRyan Moats <rmoats@us.ibm.com>
Tue, 20 Sep 2016 15:35:46 +0000 (10:35 -0500)
committerBen Pfaff <blp@ovn.org>
Tue, 20 Sep 2016 16:59:02 +0000 (09:59 -0700)
commit3b4fff438cea524ae421269abfc5197430b65cb9
treed1ea27e82f35d946174f7861c19ce333843bf711
parent1388f0b7a45d0940a276b9888c5af7774e5197ce
ofproto-dpif-xlate: Fix memory leak in execute_controller_action.

commit df70a7731 ("ofproto-dpif-xlate: Allow translating
without side-effects.") created a memory leak by removing the
dp_packet_delete statement in execute_controller_action that
freed the earlier cloned packet.  This commit restores this
statement to the end of the method.

Fixes: df70a7731 ("ofproto-dpif-xlate: Allow translating without side-effects.")
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
ofproto/ofproto-dpif-xlate.c