connmgr: Fix memory leak destroying ofmonitor.
[sliver-openvswitch.git] / ofproto / connmgr.c
index 1dc9082..8a84da5 100644 (file)
@@ -1807,6 +1807,7 @@ void
 ofmonitor_destroy(struct ofmonitor *m)
 {
     if (m) {
+        minimatch_destroy(&m->match);
         hmap_remove(&m->ofconn->monitors, &m->ofconn_node);
         free(m);
     }