summaryrefslogtreecommitdiffstats
path: root/cli/src/cli-cmd-parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli/src/cli-cmd-parser.c')
-rw-r--r--cli/src/cli-cmd-parser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c
index 3b424ca2412..322d4d9ad07 100644
--- a/cli/src/cli-cmd-parser.c
+++ b/cli/src/cli-cmd-parser.c
@@ -696,12 +696,14 @@ cli_add_key_group (dict_t *dict, char *key, char *value)
ret = dict_set_dynstr (dict, iter_key, dkey);
if (ret)
goto out;
+ dkey = NULL;
snprintf (iter_val, sizeof (iter_val), "value%d", opt_count);
dval = gf_strdup (tok_val);
ret = dict_set_dynstr (dict, iter_val, dval);
if (ret)
goto out;
+ dval = NULL;
}