diff options
author | Raghavendra G <raghavendra@gluster.com> | 2009-08-23 22:29:19 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-09-08 01:41:11 -0700 |
commit | 2cbc63ca8bbfcb91bce775651e1acc0994a18ac0 (patch) | |
tree | 079abe6461abc04531cd811cc3c06395493ff85f /xlators/performance | |
parent | 8c110d0aba119d199e2e8d29418ed45119aeb30c (diff) |
stat/prefetch: free cache if it cannot be put into context of fd
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 221 (stat prefetch implementation)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=221
Diffstat (limited to 'xlators/performance')
-rw-r--r-- | xlators/performance/stat-prefetch/src/stat-prefetch.c | 1 |
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 663ddc69a10..a35d30e641f 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; } } |