diff options
author | Kaushik BV <kaushikbv@gluster.com> | 2011-08-08 15:13:57 +0530 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-08-08 03:42:26 -0700 |
commit | a279af40f11a437fabc5b59234e677282bea246b (patch) | |
tree | ffe0eb5c162c42fd83d2bd289b973e59c2039f3a /libglusterfs/src/xlator.c | |
parent | 9b479c4beebef8c9aad92182d943b2fede6e03f2 (diff) |
mgmt/glusterd: volume set help/help-xml minor fixes
- fix few typos in description
- fix the memory leak
- add an explicit flush call to flush the contents of xmlWriter to buffer
Change-Id: Iae58b117361e3701ee31fbd65890734312289203
BUG: 2041
Reviewed-on: http://review.gluster.com/191
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'libglusterfs/src/xlator.c')
-rw-r--r-- | libglusterfs/src/xlator.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libglusterfs/src/xlator.c b/libglusterfs/src/xlator.c index 81b308d330d..7db671d6dd2 100644 --- a/libglusterfs/src/xlator.c +++ b/libglusterfs/src/xlator.c @@ -605,8 +605,6 @@ xlator_volopt_dynload (char *xlator_type, void **dl_handle, } *dl_handle = handle; - INIT_LIST_HEAD (&opt_list->list); - vol_opt = GF_CALLOC (1, sizeof (volume_opt_list_t), gf_common_mt_volume_opt_list_t); @@ -619,10 +617,12 @@ xlator_volopt_dynload (char *xlator_type, void **dl_handle, gf_log ("xlator", GF_LOG_DEBUG, "Strict option validation not enforced -- neglecting"); } - list_add_tail (&vol_opt->list, &opt_list->list); + list_add (&vol_opt->list, &opt_list->list); ret = 0; out: + if (name) + GF_FREE (name); gf_log ("xlator", GF_LOG_DEBUG, "Returning %d", ret); return ret; |