]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librados: Memory leaks in object_list_begin and object_list_end 12482/head
authorBrad Hubbard <bhubbard@redhat.com>
Wed, 14 Dec 2016 06:29:08 +0000 (16:29 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Wed, 14 Dec 2016 06:29:08 +0000 (16:29 +1000)
commit8d9d84bce923a009054ad2b223a97d7eb00e6774
treee1d1c1fee2509bff5693c364dfd161e08aeebdc1
parent317c9b98f7a621c9a8a439bf54514b81d165f50f
librados: Memory leaks in object_list_begin and object_list_end

We allocate a cursor in the constructor but simply reassign it in these
functions without cleaning up the original. We have a utility setter that
handles this exact case so we should use it.

Fixes: http://tracker.ceph.com/issues/18252
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
src/librados/librados.cc