summaryrefslogtreecommitdiff
path: root/lib/stp.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2014-01-08 10:42:12 -0800
committerBen Pfaff <blp@nicira.com>2014-01-08 17:13:30 -0800
commitc5f81b20da9bbf0ac406a88718597a4e84729a98 (patch)
tree0aedc2ef40e214d0a99135bdd0e94a972fb09d84 /lib/stp.c
parent4597d2a57226eaec787d6501e88ab32f3b6209e1 (diff)
downloadopenvswitch-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/stp.c b/lib/stp.c
index 814026306..818f2ca3d 100644
--- a/lib/stp.c
+++ b/lib/stp.c
@@ -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);
}
}