]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librados: always free buffer allocated by md_config_t::_get_val
authorJosh Durgin <josh.durgin@inktank.com>
Mon, 24 Sep 2012 22:12:11 +0000 (15:12 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Tue, 25 Sep 2012 00:57:33 +0000 (17:57 -0700)
commit4567a6df2f45e947be0eb248529f7610ecc2305c
tree4d55dafbd35839f6c9332ac0d7ffdae892f467a7
parenta677f47926b9640c53fbd00c94d6eb7a590a94fc
librados: always free buffer allocated by md_config_t::_get_val

CID 717083: Resource leak (RESOURCE_LEAK)
At (3): Variable "str" going out of scope leaks the storage it points
to.

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