diff options
author | Ben Pfaff <blp@nicira.com> | 2014-01-08 10:42:12 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2014-01-08 17:13:30 -0800 |
commit | c5f81b20da9bbf0ac406a88718597a4e84729a98 (patch) | |
tree | 0aedc2ef40e214d0a99135bdd0e94a972fb09d84 /lib/stp.c | |
parent | 4597d2a57226eaec787d6501e88ab32f3b6209e1 (diff) | |
download | openvswitch-c5f81b20da9bbf0ac406a88718597a4e84729a98.tar.gz |
ovs-atomic: Add atomic_destroy() and use everywhere it is needed.
C11 is able to require that atomics don't need to be destroyed, but some
of the OVS implementations do.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/stp.c')
-rw-r--r-- | lib/stp.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -342,6 +342,7 @@ stp_unref(struct stp *stp) list_remove(&stp->node); ovs_mutex_unlock(&mutex); free(stp->name); + atomic_destroy(&stp->ref_cnt); free(stp); } } |