ofproto-dpif-upcall: Fix a memory leak.
[sliver-openvswitch.git] / ofproto / ofproto-dpif-upcall.h
index 9bd19ad..cd97e79 100644 (file)
@@ -104,6 +104,11 @@ struct flow_miss_batch {
     struct hmap misses;
 
     unsigned int reval_seq;
+
+    /* Flow misses refer to the memory held by "struct upcall"s,
+     * so we need to keep track of the upcalls to be able to
+     * free them when done. */
+    struct list upcalls;        /* Contains "struct upcall"s. */
 };
 
 struct flow_miss_batch *flow_miss_batch_next(struct udpif *);