summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/performance/stat-prefetch/src/stat-prefetch.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xlators/performance/stat-prefetch/src/stat-prefetch.c b/xlators/performance/stat-prefetch/src/stat-prefetch.c
index 729924ff8..7722c7bc8 100644
--- a/xlators/performance/stat-prefetch/src/stat-prefetch.c
+++ b/xlators/performance/stat-prefetch/src/stat-prefetch.c
@@ -377,6 +377,7 @@ sp_cache_remove_entry (sp_cache_t *cache, char *name, char remove_all)
rbthash_table_t *table = NULL;
xlator_t *this;
sp_private_t *priv = NULL;
+ void *data = NULL;
if ((cache == NULL) || ((name == NULL) && !remove_all)) {
goto out;
@@ -408,7 +409,9 @@ sp_cache_remove_entry (sp_cache_t *cache, char *name, char remove_all)
ret = 0;
}
} else {
- rbthash_remove (cache->table, name, strlen (name));
+ data = rbthash_remove (cache->table, name,
+ strlen (name));
+ FREE (data);
ret = 0;
}
}