From 811abf66d158efa037f1314792f7c674a7640c50 Mon Sep 17 00:00:00 2001 From: Ravishankar N Date: Mon, 1 Dec 2014 10:08:53 +0000 Subject: heal: free leaked frames. 'gluster v heal info` waits for about 10 seconds before printing the heal info and exiting. Problem: glfsh_process_entries() is not freeing the frames it created. Thus when glfs_fini() is called, it busy waits for 10 seconds for background frames to finish before returning error. Fix: Destroy the frames in that are created in glfsh_process_entries(). Change-Id: I5484d1b7301a355b913ae9c15b8a62471036c755 BUG: 1169335 Signed-off-by: Ravishankar N Reviewed-on: http://review.gluster.org/9224 Tested-by: Gluster Build System Reviewed-by: Pranith Kumar Karampuri Tested-by: Pranith Kumar Karampuri --- heal/src/glfs-heal.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'heal/src/glfs-heal.c') diff --git a/heal/src/glfs-heal.c b/heal/src/glfs-heal.c index e01e98df0e9..1056ea467c4 100644 --- a/heal/src/glfs-heal.c +++ b/heal/src/glfs-heal.c @@ -350,6 +350,8 @@ out: inode_unref (inode); } + if (frame) + AFR_STACK_DESTROY (frame); GF_FREE (path); return ret; } -- cgit