summaryrefslogtreecommitdiff
path: root/ofproto/netflow.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 /ofproto/netflow.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 'ofproto/netflow.c')
-rw-r--r--ofproto/netflow.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ofproto/netflow.c b/ofproto/netflow.c
index f79ad6ad0..3aa0630bf 100644
--- a/ofproto/netflow.c
+++ b/ofproto/netflow.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, 2010, 2011 Nicira, Inc.
+ * Copyright (c) 2008, 2009, 2010, 2011, 2013 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -438,6 +438,7 @@ netflow_unref(struct netflow *nf)
atomic_sub(&netflow_count, 1, &orig);
collectors_destroy(nf->collectors);
ofpbuf_uninit(&nf->packet);
+ atomic_destroy(&nf->ref_cnt);
free(nf);
}
}