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:
parent
82b7f8d779
commit
31b6308c64
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user