From bca6d0ba54d12d389cfb5c2b37fb8cc12a7e044b Mon Sep 17 00:00:00 2001 From: N Balachandran Date: Wed, 28 Sep 2016 21:38:57 +0530 Subject: protocol/client: reduce memory usage readdirp calls use a lot of memory in case of a large number of files. The dict->extra_free is not used here so free buf immediately. Change-Id: I097f5dde2df471f5834264152711110a3bdb7e9a BUG: 1380249 Signed-off-by: N Balachandran Reviewed-on: http://review.gluster.org/15593 NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Smoke: Gluster Build System Reviewed-by: Pranith Kumar Karampuri --- xlators/protocol/client/src/client-helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/protocol/client/src') diff --git a/xlators/protocol/client/src/client-helpers.c b/xlators/protocol/client/src/client-helpers.c index 8293d47c102..7e9bbf60aa7 100644 --- a/xlators/protocol/client/src/client-helpers.c +++ b/xlators/protocol/client/src/client-helpers.c @@ -235,7 +235,7 @@ unserialize_rsp_direntp (xlator_t *this, fd_t *fd, "failed to unserialize xattr dict"); goto out; } - entry->dict->extra_free = buf; + GF_FREE (buf); buf = NULL; } -- cgit