summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
Diffstat (limited to 'xlators')
-rw-r--r--xlators/features/marker/src/marker.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xlators/features/marker/src/marker.c b/xlators/features/marker/src/marker.c
index c84469b1547..e7a704874a8 100644
--- a/xlators/features/marker/src/marker.c
+++ b/xlators/features/marker/src/marker.c
@@ -158,16 +158,18 @@ marker_error_handler (xlator_t *this)
int32_t
marker_local_unref (marker_local_t *local)
{
+ int32_t var = 0;
+
if (local == NULL)
return -1;
LOCK (&local->lock);
{
- local->ref--;
+ var = --local->ref;
}
UNLOCK (&local->lock);
- if (local->ref != 0)
+ if (var != 0)
goto out;
loc_wipe (&local->loc);