summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/features/marker/src/marker.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/xlators/features/marker/src/marker.c b/xlators/features/marker/src/marker.c
index 5299d2254af..89da0893295 100644
--- a/xlators/features/marker/src/marker.c
+++ b/xlators/features/marker/src/marker.c
@@ -768,11 +768,11 @@ marker_unlink_stat_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
{
marker_local_t *local = NULL;
+ local = frame->local;
if (op_ret < 0) {
goto err;
}
- local = frame->local;
if (local == NULL) {
op_errno = EINVAL;
goto err;
@@ -784,8 +784,9 @@ marker_unlink_stat_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
FIRST_CHILD(this)->fops->unlink, &local->loc);
return 0;
err:
+ frame->local = NULL;
STACK_UNWIND_STRICT (unlink, frame, -1, op_errno, NULL, NULL);
-
+ marker_local_unref (local);
return 0;
}
@@ -820,8 +821,9 @@ unlink_wind:
FIRST_CHILD(this)->fops->unlink, loc);
return 0;
err:
+ frame->local = NULL;
STACK_UNWIND_STRICT (unlink, frame, -1, ENOMEM, NULL, NULL);
-
+ marker_local_unref (local);
return 0;
}