summaryrefslogtreecommitdiffstats
path: root/xlators/performance/read-ahead/src/read-ahead.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/performance/read-ahead/src/read-ahead.c')
-rw-r--r--xlators/performance/read-ahead/src/read-ahead.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/performance/read-ahead/src/read-ahead.c b/xlators/performance/read-ahead/src/read-ahead.c
index da9715c8413..8e140d82147 100644
--- a/xlators/performance/read-ahead/src/read-ahead.c
+++ b/xlators/performance/read-ahead/src/read-ahead.c
@@ -921,6 +921,9 @@ fini (xlator_t *this)
{
ra_conf_t *conf = this->private;
+ if (conf == NULL)
+ return;
+
pthread_mutex_destroy (&conf->conf_lock);
FREE (conf);