From b0003a7e789e0618656dd4214195578f53d1e84e Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Tue, 14 Sep 2010 00:54:22 +0000 Subject: mgmt/glusterd: free xdr allocations Signed-off-by: Pranith Kumar K Signed-off-by: Vijay Bellur BUG: 1186 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1186 --- rpc/rpc-lib/src/rpc-transport.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rpc') diff --git a/rpc/rpc-lib/src/rpc-transport.c b/rpc/rpc-lib/src/rpc-transport.c index 184d614a466..7acf04d027c 100644 --- a/rpc/rpc-lib/src/rpc-transport.c +++ b/rpc/rpc-lib/src/rpc-transport.c @@ -902,6 +902,10 @@ rpc_transport_load (glusterfs_ctx_t *ctx, dict_t *options, char *trans_name) goto fail; } + if (name) { + GF_FREE (name); + } + trans->ops = dlsym (handle, "tops"); if (trans->ops == NULL) { gf_log ("rpc-transport", GF_LOG_ERROR, @@ -970,10 +974,6 @@ fail: GF_FREE (trans); } - if (name) { - GF_FREE (name); - } - if (vol_opt) { GF_FREE (vol_opt); } -- cgit