cfm: Reference count 'struct cfm'.
[sliver-openvswitch.git] / ofproto / ofproto-dpif.c
index 85e5376..4a6852b 100644 (file)
@@ -1674,7 +1674,7 @@ set_cfm(struct ofport *ofport_, const struct cfm_settings *s)
 
         error = EINVAL;
     }
-    cfm_destroy(ofport->cfm);
+    cfm_unref(ofport->cfm);
     ofport->cfm = NULL;
     return error;
 }