summaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
authorSanju Rakonde <srakonde@redhat.com>2018-10-07 14:22:06 +0530
committerAtin Mukherjee <amukherj@redhat.com>2018-10-08 12:30:35 +0000
commit31b6308c646a84c5064d2fb31dc45363a71b131a (patch)
tree4ac475145c72610844867eaa71627aecd11f7abb /cli
parent82b7f8d77974bd2133705cce0d9188756dab3563 (diff)
cli: Resource leak coverity fix
This patch fixes CID 1175017. Change-Id: I4968c35489aeb5bfa0461b2edf2a0d73b7f03c14 updates: bz#789278 Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
Diffstat (limited to 'cli')
-rw-r--r--cli/src/cli-cmd-parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c
index ceb95af785d..85c7a30c678 100644
--- a/cli/src/cli-cmd-parser.c
+++ b/cli/src/cli-cmd-parser.c
@@ -813,6 +813,7 @@ cli_cmd_volume_create_parse(struct cli_state *state, const char **words,
*brick_list = bricks;
out:
if (ret) {
+ GF_FREE(bricks);
gf_log("cli", GF_LOG_ERROR, "Unable to parse create volume CLI");
if (dict)
dict_unref(dict);