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
/
bfd.c
diff --git
a/lib/bfd.c
b/lib/bfd.c
index
b8574d5
..
ad2d753
100644
(file)
--- a/
lib/bfd.c
+++ b/
lib/bfd.c
@@
-460,6
+460,7
@@
bfd_unref(struct bfd *bfd) OVS_EXCLUDED(mutex)
hmap_remove(all_bfds, &bfd->node);
netdev_close(bfd->netdev);
free(bfd->name);
+ atomic_destroy(&bfd->ref_cnt);
free(bfd);
ovs_mutex_unlock(&mutex);
}