From 2339b9e87e8e48df9b64ba016949a2f40b50324e Mon Sep 17 00:00:00 2001 From: Pranith K Date: Wed, 23 Mar 2011 21:44:13 +0000 Subject: mgmt/glusterd: Avoid printing no-error message to user when op fails - Prints the peer hostname/uuid where the error happened in case the peer does not return an error string. Signed-off-by: Pranith Kumar K Signed-off-by: Vijay Bellur BUG: 2585 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2585 --- xlators/mgmt/glusterd/src/glusterd-store.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/mgmt/glusterd/src/glusterd-store.c') diff --git a/xlators/mgmt/glusterd/src/glusterd-store.c b/xlators/mgmt/glusterd/src/glusterd-store.c index 96af05d80..e1db5f454 100644 --- a/xlators/mgmt/glusterd/src/glusterd-store.c +++ b/xlators/mgmt/glusterd/src/glusterd-store.c @@ -1912,6 +1912,7 @@ glusterd_store_retrieve_peers (xlator_t *this) ret = glusterd_friend_add (hostname, 0, state, &uuid, NULL, &peerinfo, 1, &args); + GF_FREE (hostname); if (ret) goto out; -- cgit