diff options
Diffstat (limited to 'xlators/features/marker/src/marker-quota.c')
-rw-r--r-- | xlators/features/marker/src/marker-quota.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xlators/features/marker/src/marker-quota.c b/xlators/features/marker/src/marker-quota.c index 6b5f7f86..e8a58ef5 100644 --- a/xlators/features/marker/src/marker-quota.c +++ b/xlators/features/marker/src/marker-quota.c @@ -1929,7 +1929,7 @@ fr_destroy: return -1; } -static int +int mq_prepare_txn_frame (xlator_t *this, loc_t *loc, quota_inode_ctx_t *ctx, inode_contribution_t *contri, @@ -1939,7 +1939,7 @@ mq_prepare_txn_frame (xlator_t *this, loc_t *loc, int ret = -1; quota_local_t *local = NULL; - if (!this || !loc || new_frame) + if (!this || !loc || !new_frame) goto err; frame = create_frame (this, this->ctx->pool); @@ -1969,9 +1969,10 @@ mq_prepare_txn_frame (xlator_t *this, loc_t *loc, ret = 0; *new_frame = frame; + return ret; + fr_destroy: QUOTA_STACK_DESTROY (frame, this); - err: return ret; } |