]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
[RGW, memory leaks] Memory leak in RGW initialization (Inserting new connection into...
authorAndrey Kuznetsov <Andrey_Kuznetsov@epam.com>
Thu, 19 Jun 2014 13:56:01 +0000 (17:56 +0400)
committerferus.tigris@gmail.com <ferus.tigris@gmail.com>
Sun, 29 Jun 2014 18:26:16 +0000 (22:26 +0400)
commit8706b74e0368916c2fbbbbed55d1dbaa10e7ff2b
tree635e86b1d2ad0ce490a04d1f38f13424799a8e65
parentf9eb77b14daac3a4db39b00c3b42da1dd5412ab6
[RGW, memory leaks] Memory leak in RGW initialization (Inserting new connection into connections map w/o check) has been fixed.

Memory leaks detector report:

$ valgrind  --leak-check=full /usr/bin/radosgw -c /etc/ceph/ceph.conf -n
client.radosgw.gateway -f
...
=16986== 1,262 (48 direct, 1,214 indirect) bytes in 1 blocks are definitely lost in loss record 81
of 83
==16986==    at 0x4A075BC: operator new(unsigned long) (vg_replace_malloc.c:298)
==16986==    by 0x618F0D: RGWRados::init_complete() (in /usr/bin/radosgw)
==16986==    by 0x618FE6: RGWRados::initialize() (in /usr/bin/radosgw)
==16986==    by 0x63BB23: RGWRados::initialize(CephContext*, bool) (in /usr/bin/radosgw)
==16986==    by 0x634D20: RGWStoreManager::init_storage_provider(CephContext*, bool) (in
/usr/bin/radosgw)
==16986==    by 0x5B8970: RGWStoreManager::get_storage(CephContext*, bool) (in /usr/bin/radosgw)
==16986==    by 0x5B6D5D: main (in /usr/bin/radosgw)
...

Signed-off-by: Andrey Kuznetsov <Andrey_Kuznetsov@epam.com>
src/rgw/rgw_rados.cc