summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src
diff options
context:
space:
mode:
authorJeff Darcy <jdarcy@redhat.com>2017-02-08 19:45:46 -0500
committerShyamsundar Ranganathan <srangana@redhat.com>2017-02-09 08:49:10 -0500
commit2199c688b73dfe90868f9469f92e21b0e0795e57 (patch)
tree272b26dc0d6c6cfc2ce992ec50dbf5c163d1f19b /libglusterfs/src
parent1e4f9c58a1b013f3f27d515d72d1e76e1a53436e (diff)
libglusterfs: fix serious leak of xlator_t structures
There's a lot of logic (and some long comments) around how to free these structures safely, but then we didn't do it. Now we do. Change-Id: I9731ae75c60e99cc43d33d0813a86912db97fd96 BUG: 1420571 Signed-off-by: Jeff Darcy <jdarcy@redhat.com> Reviewed-on: https://review.gluster.org/16570 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Poornima G <pgurusid@redhat.com> Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com>
Diffstat (limited to 'libglusterfs/src')
-rw-r--r--libglusterfs/src/xlator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libglusterfs/src/xlator.c b/libglusterfs/src/xlator.c
index 4702ea3eb77..0d09b3fbc82 100644
--- a/libglusterfs/src/xlator.c
+++ b/libglusterfs/src/xlator.c
@@ -752,6 +752,7 @@ xlator_tree_free_memacct (xlator_t *tree)
while (prev) {
trav = prev->next;
xlator_memrec_free (prev);
+ GF_FREE (prev);
prev = trav;
}