summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
Diffstat (limited to 'xlators')
-rw-r--r--xlators/performance/io-cache/src/page.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xlators/performance/io-cache/src/page.c b/xlators/performance/io-cache/src/page.c
index 33e728cfc8c..a6148e04746 100644
--- a/xlators/performance/io-cache/src/page.c
+++ b/xlators/performance/io-cache/src/page.c
@@ -896,10 +896,10 @@ unwind:
vector = NULL;
}
- pthread_mutex_destroy (&local->local_lock);
- if (local)
+ if (local) {
+ pthread_mutex_destroy (&local->local_lock);
mem_put (local);
-
+ }
return;
}