git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ovs-atomic: Add atomic_destroy() and use everywhere it is needed.
[sliver-openvswitch.git]
/
lib
/
cfm.c
diff --git
a/lib/cfm.c
b/lib/cfm.c
index
5ee94d5
..
fc0ef78
100644
(file)
--- a/
lib/cfm.c
+++ b/
lib/cfm.c
@@
-374,6
+374,11
@@
cfm_unref(struct cfm *cfm) OVS_EXCLUDED(mutex)
hmap_destroy(&cfm->remote_mps);
netdev_close(cfm->netdev);
free(cfm->rmps_array);
+
+ atomic_destroy(&cfm->extended);
+ atomic_destroy(&cfm->check_tnl_key);
+ atomic_destroy(&cfm->ref_cnt);
+
free(cfm);
}