commit | d310504e6b4973133577ce411e60c87cfeab4d1b | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Wed Sep 01 08:11:57 2021 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Wed Sep 01 08:11:57 2021 +0200 |
tree | fd21e0515404ae3ef53c9856a501a0360b00f3db | |
parent | 04338d9f5ee4b5ccade2a4311e173ecf847a937d [diff] |
schema free BUGFIX typo
diff --git a/src/tree_schema_free.c b/src/tree_schema_free.c index 7c4bf4c..7c367b0 100644 --- a/src/tree_schema_free.c +++ b/src/tree_schema_free.c
@@ -666,7 +666,7 @@ void lysc_type_free(struct ly_ctx *ctx, struct lysc_type *type) { - if (LY_ATOMIC_INC_BARRIER(type->refcount) > 1) { + if (LY_ATOMIC_DEC_BARRIER(type->refcount) > 1) { return; }