summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/features/marker/src/marker-quota.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/features/marker/src/marker-quota.c b/xlators/features/marker/src/marker-quota.c
index 68a8a26c6..8d4f17ea5 100644
--- a/xlators/features/marker/src/marker-quota.c
+++ b/xlators/features/marker/src/marker-quota.c
@@ -1728,6 +1728,8 @@ quota_inode_remove_done (call_frame_t *frame, void *cookie, xlator_t *this,
return 0;
}
+ frame->local = NULL;
+
if (local->hl_count > 1) {
GET_CONTRI_KEY (contri_key, local->contri->gfid, ret);
@@ -1735,6 +1737,8 @@ quota_inode_remove_done (call_frame_t *frame, void *cookie, xlator_t *this,
FIRST_CHILD(this)->fops->removexattr,
&local->loc, contri_key);
ret = 0;
+ } else {
+ quota_removexattr_cbk (frame, NULL, this, 0, 0);
}
if (strcmp (local->parent_loc.path, "/") != 0) {
@@ -1743,7 +1747,9 @@ quota_inode_remove_done (call_frame_t *frame, void *cookie, xlator_t *this,
start_quota_txn (this, &local->loc, local->ctx, local->contri);
}
+ /* TODO: free local in quota_local_unref only*/
quota_local_unref (this, local);
+ GF_FREE (local);
return 0;
}