openvswitch: Fix memory leak.

Need to free memory in case of sample action error.

Introduced by commit 651887b0c2 ("openvswitch: Sample
action without side effects").

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
This commit is contained in:
Pravin B Shelar 2014-11-11 13:40:49 -08:00
parent b23dc5a7cc
commit ab64f16ff2

View File

@ -722,8 +722,6 @@ static int do_execute_actions(struct datapath *dp, struct sk_buff *skb,
case OVS_ACTION_ATTR_SAMPLE: case OVS_ACTION_ATTR_SAMPLE:
err = sample(dp, skb, key, a); err = sample(dp, skb, key, a);
if (unlikely(err)) /* skb already freed. */
return err;
break; break;
} }