]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd/internal.cc: fix resource leak 296/head
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 16 May 2013 13:56:12 +0000 (15:56 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 17 May 2013 11:54:09 +0000 (13:54 +0200)
commit4ba70f8fb4bd81cd7fd5c162e4c48d144b3368ff
treec356558b2a1496e8ebcb9d67e52aeaabf1b5bb34
parent7494e4eb6bc709af0814192aaa3656e853361efb
librbd/internal.cc: fix resource leak

Call release() on librados::AioCompletion to free storage before
leave the loop or call new again.

CID 1021213 (#1 of 1): Resource leak (RESOURCE_LEAK)
  leaked_storage: Variable "rados_completion" going out of scope leaks
  the storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/librbd/internal.cc