]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
scratchtool.c: cleanup rados_t on error
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 13 May 2013 11:17:14 +0000 (13:17 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 14 May 2013 16:39:30 +0000 (18:39 +0200)
commit3c285c44bd6bb200ed95b6714dbcff12568d9a6a
tree6ff5016677aea7f87384f1a87f854f4ba3f014c4
parentcab8e9bfcdd7ce0580904bb001c58f1dad5f43bb
scratchtool.c: cleanup rados_t on error

Make sure rados_shutdown() get called also in error case.

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

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/scratchtool.c