1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-23 21:35:29 +03:00
lvm2/daemons/lvmetad
wangjufeng bcf9556b8f lvmetad: fix heap memory leak
error could be reproduced by calling pvs periodically:
    #!/bin/bash
    while :
    do
        pvs
        sleep 1
    done

use top command to watch RES memory of lvmetad. After a few minutes,
its RES memory will grow for a few KB. Then stop calling pvs, while
its RES will not decrease.

This is because, when lvmetad make reponse for clent request, it
will malloc new chunk for s->vgid_to_metadata, while actually the
new chunk should be added to the reponse dm_config_tree, or it will
make the chunk list of s->vgid_to_metadata keep growing.

Signed-off-by: wangjufeng <wangjufeng@huawei.com>
Reviewed-by: liuzhiqiang <liuzhiqiang26@huawei.com>
Reviewed-by: guiyao <guiyao@huawei.com>
2020-02-05 15:30:17 -06:00
..
.gitignore gitignore: Update for in-place build. 2015-07-27 13:18:35 +01:00
lvmetactl.c lvmetad: handle update failures 2016-06-07 10:17:00 -05:00
lvmetad-client.h Remove lvm1 and pool disk formats 2018-04-30 16:55:02 -05:00
lvmetad-core.c lvmetad: fix heap memory leak 2020-02-05 15:30:17 -06:00
Makefile.in configure: improve test for realtime clock 2017-08-01 14:03:54 +02:00
test.sh Work out some more details in metadata update in lvmetad. 2011-07-19 16:48:13 +00:00
testclient.c coverity: missing check for id_write_format return value 2016-05-31 09:56:10 +02:00