cli: Resource leak coverity fix

This patch fixes CID 1175017.

Change-Id: I4968c35489aeb5bfa0461b2edf2a0d73b7f03c14
updates: bz#789278
Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
This commit is contained in:
Sanju Rakonde 2018-10-07 14:22:06 +05:30 committed by Atin Mukherjee
parent 82b7f8d779
commit 31b6308c64

View File

@ -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);