diff options
Diffstat (limited to 'xlators/features/trash')
-rw-r--r-- | xlators/features/trash/src/trash.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/xlators/features/trash/src/trash.c b/xlators/features/trash/src/trash.c index e0bfcd9db43..a59b186add1 100644 --- a/xlators/features/trash/src/trash.c +++ b/xlators/features/trash/src/trash.c @@ -397,8 +397,11 @@ rename_trash_directory (xlator_t *this) return 0; out: - frame->local = NULL; - STACK_DESTROY (frame->root); + if (frame) { + frame->local = NULL; + STACK_DESTROY (frame->root); + } + trash_local_wipe (local); return ret; @@ -2427,7 +2430,7 @@ notify (xlator_t *this, int event, void *data, ...) goto out; if (priv->internal) - ret = create_internalop_directory (this); + (void) create_internalop_directory (this); } |