diff options
author | shujun10086 <shujun.huang@nokia-sbell.com> | 2018-10-02 08:37:17 +0000 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2018-10-03 09:49:40 +0530 |
commit | 04a98cd88e9e9eb9f7bc6c174671d82ece666fbf (patch) | |
tree | 28e2c63a8cdd03107d8719f39f53ab8d35455d0c /cli | |
parent | fa091f07841dac48fff1fa505b88f7b7edea9edc (diff) |
cli: fix glusterd memory leak cause by "gluster v status volume_name"
If use this command every some seconds for example 15s to check gluster brick
status, the glusterd will use about 1G memory in a year. free the value of rsp
in gf_cli_status_cbk. glusterd allocate the value of rsp and send it to cli, but
cli do not free the value, that cause glusterd memory leak.
fixes: bz#1635480
Change-Id: I3f19cd0d4b791ae1b35f9664b3a668b1579f1178
Signed-off-by: shujun10086 <shujun.huang@nokia-sbell.com>
Diffstat (limited to 'cli')
-rwxr-xr-x[-rw-r--r--] | cli/src/cli-rpc-ops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index 850658b2a2e..694976b0e4a 100644..100755 --- a/cli/src/cli-rpc-ops.c +++ b/cli/src/cli-rpc-ops.c @@ -8442,6 +8442,7 @@ cont: ret = rsp.op_ret; out: + FREE(rsp.dict.dict_val); if (dict) dict_unref(dict); GF_FREE(status.brick); |