]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
[RGW, memory leak] Memory leak in RGW has been fixed: deletion of allocated pointer... 2003/head
authorAndrey Kuznetsov <Andrey_Kuznetsov@epam.com>
Fri, 27 Jun 2014 06:33:58 +0000 (10:33 +0400)
committerferus.tigris@gmail.com <ferus.tigris@gmail.com>
Sun, 29 Jun 2014 18:26:25 +0000 (22:26 +0400)
commit59d18ac22daa64e6c8ccb7bc22da17b450e846f8
tree65552d32eba971665cf89bdb14b10eefc6b5c8ec
parent8e5c92139e3ac164fc3323b7cc790d979307c0f1
[RGW, memory leak] Memory leak in RGW has been fixed: deletion of allocated pointer to pointer to Log object has been added to "on_exit" handler.

Memory leaks detector report:

$ valgrind  --leak-check=full /usr/bin/radosgw -c /etc/ceph/ceph.conf -n
client.radosgw.gateway -
...
==16986== 8 bytes in 1 blocks are definitely lost in loss record 14 of 83
==16986==    at 0x4A075BC: operator new(unsigned long) (vg_replace_malloc.c:298)
==16986==    by 0x58980B8: ceph::log::Log::set_flush_on_exit() (in /usr/lib64/librados.so.2.0.0)
==16986==    by 0x6BE3CA: global_init(std::vector<char const*, std::allocator<char const*> >*, st
==16986==    by 0x5B6B0A: main (in /usr/bin/radosgw)
...

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