diff options
| author | Pranith Kumar K <pranithk@gluster.com> | 2010-09-14 00:54:22 +0000 | 
|---|---|---|
| committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-09-14 00:47:19 -0700 | 
| commit | b0003a7e789e0618656dd4214195578f53d1e84e (patch) | |
| tree | 49ea5c372d6609b5781a7d1f789c3294469b1cba /rpc/rpc-lib/src | |
| parent | 174f963c846331c6dafda169451790b6039ef3fb (diff) | |
mgmt/glusterd: free xdr allocations
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1186 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1186
Diffstat (limited to 'rpc/rpc-lib/src')
| -rw-r--r-- | rpc/rpc-lib/src/rpc-transport.c | 8 | 
1 files changed, 4 insertions, 4 deletions
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);          }  | 
