]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd: fix leak of dir handle in get_rbd_seq
authorJosh Durgin <josh.durgin@inktank.com>
Tue, 25 Sep 2012 00:35:09 +0000 (17:35 -0700)
committerSamuel Just <sam.just@inktank.com>
Tue, 25 Sep 2012 21:09:28 +0000 (14:09 -0700)
commitcd78cd243f1a66f656994bf4b9524d0e0f8c5e23
treeca92c6f05227508cbbd283267ccd1e60a614a95a
parent84fa74e67bc7bada0bc5c3755dd1f386e826c1bf
rbd: fix leak of dir handle in get_rbd_seq

CID 717098: Resource leak (RESOURCE_LEAK)
At (6): Variable "device_dir" going out of scope leaks the storage it
points to.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/rbd.cc