diff options
| -rw-r--r-- | xlators/performance/read-ahead/src/read-ahead.c | 7 | 
1 files changed, 5 insertions, 2 deletions
diff --git a/xlators/performance/read-ahead/src/read-ahead.c b/xlators/performance/read-ahead/src/read-ahead.c index 1a4dda97ac6..f7f16115b93 100644 --- a/xlators/performance/read-ahead/src/read-ahead.c +++ b/xlators/performance/read-ahead/src/read-ahead.c @@ -1096,11 +1096,14 @@ fini (xlator_t *this)                  goto out;          } +        this->private = NULL; + +        GF_ASSERT ((conf->files.next == &conf->files) +                   && (conf->files.prev == &conf->files)); +          pthread_mutex_destroy (&conf->conf_lock);          GF_FREE (conf); -        this->private = NULL; -  out:          return;  }  | 
