summaryrefslogtreecommitdiffstats
path: root/cli/src/cli-cmd-parser.c
diff options
context:
space:
mode:
authorPranith K <pranithk@gluster.com>2010-11-12 00:55:02 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-11-13 07:02:36 -0800
commitb43ef598abec07cff6090dd507419347621b473c (patch)
tree9be39583f68819fb689c492ceadba65d43db6c4e /cli/src/cli-cmd-parser.c
parented8499c728df609a3d09743ee60f85f6ecea9d16 (diff)
mgmt/glusterd: set the transport type correctly in create volume
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2095 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2095
Diffstat (limited to 'cli/src/cli-cmd-parser.c')
-rw-r--r--cli/src/cli-cmd-parser.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c
index 826717223b8..ecf22931efe 100644
--- a/cli/src/cli-cmd-parser.c
+++ b/cli/src/cli-cmd-parser.c
@@ -177,7 +177,7 @@ cli_cmd_volume_create_parse (const char **words, int wordcount, dict_t **options
trans_type = gf_strdup ("tcp");
}
- ret = dict_set_str (dict, "transport", trans_type);
+ ret = dict_set_dynstr (dict, "transport", trans_type);
if (ret)
goto out;
@@ -288,9 +288,6 @@ out:
if (dict)
dict_destroy (dict);
}
- if (trans_type)
- GF_FREE (trans_type);
-
return ret;
}