summaryrefslogtreecommitdiffstats
path: root/xlators/performance/stat-prefetch/src/stat-prefetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/performance/stat-prefetch/src/stat-prefetch.c')
-rw-r--r--xlators/performance/stat-prefetch/src/stat-prefetch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/performance/stat-prefetch/src/stat-prefetch.c b/xlators/performance/stat-prefetch/src/stat-prefetch.c
index 663ddc69a..a35d30e64 100644
--- a/xlators/performance/stat-prefetch/src/stat-prefetch.c
+++ b/xlators/performance/stat-prefetch/src/stat-prefetch.c
@@ -525,6 +525,7 @@ sp_readdir_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
ret = sp_put_cache (this, fd, cache);
if (ret == -1) {
+ sp_cache_free (cache);
goto out;
}
}