]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
erasure-code: do not leak shec instance on failure
authorLoic Dachary <ldachary@redhat.com>
Mon, 25 May 2015 13:36:30 +0000 (15:36 +0200)
committerLoic Dachary <ldachary@redhat.com>
Mon, 25 May 2015 14:59:02 +0000 (16:59 +0200)
commit0822922566e0bc67741a59933d2c9fc150e75d31
tree4f33df17f5fea1ea7f5cfceb241071318ce11547
parent6ca60061bb034adf5a32f790eb04f4f4e69ae286
erasure-code: do not leak shec instance on failure

If the shec plugin fails to initialize the instance, it must be deleted
before returning to the caller, otherwise it will be leaked.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/erasure-code/shec/ErasureCodePluginShec.cc