]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test_cls_version.cc: close some memory leaks
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 25 Jul 2013 22:14:59 +0000 (00:14 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 26 Jul 2013 21:55:41 +0000 (23:55 +0200)
commit143b843ed1aea72d4a21a659ffee37a751eb9610
tree0058e9657f0365cb9d45c484c1ab60309508144e
parenta90a2b42db8de134b8ea5d81cab7825fb9ec50b4
test_cls_version.cc: close some memory leaks

Close some memory leaks caused by calling new() without
freeing the memory already assigned to 'rop'.

CID 1054848 (#1-6 of 6): Resource leak (RESOURCE_LEAK)
  overwrite_var: Overwriting "rop" in "rop = new_rop()"
  leaks the storage that "rop" points to.

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