projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix memory leak when OFPP_TABLE is used for a packet that matches no flow.
[openvswitch]
/
switch
/
datapath.c
diff --git
a/switch/datapath.c
b/switch/datapath.c
index e1ae51860591059be4d5f7f0119818a92ce3fa37..4ec436e0aad667560ea04c61a32d5bb41252cfe5 100644
(file)
--- a/
switch/datapath.c
+++ b/
switch/datapath.c
@@
-556,6
+556,8
@@
dp_output_port(struct datapath *dp, struct buffer *buffer,
flow_used(flow, buffer);
execute_actions(dp, buffer, in_port, &key,
flow->actions, flow->n_actions);
+ } else {
+ buffer_delete(buffer);
}
} else {
output_packet(dp, buffer, out_port);