glusterd: Fix for memory leak in get-state detail

Fixes: bz#1573066
Change-Id: I76fe3bdde7351736b32eb3d6c4cc5f8f276257ed
Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
This commit is contained in:
Sanju Rakonde 2018-04-30 11:12:34 +05:30 committed by Atin Mukherjee
parent e2fda09811
commit 2fd93ccd19

View File

@ -5348,8 +5348,15 @@ out:
if (pending_node)
GF_FREE (pending_node);
if (brick_req)
if (brick_req) {
if (brick_req->input.input_val)
GF_FREE (brick_req->input.input_val);
GF_FREE (brick_req);
}
if (args.dict)
dict_unref (args.dict);
if (args.errstr)
GF_FREE (args.errstr);
return ret;
}