]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
os/filestore: do not free event not added
authorKefu Chai <kchai@redhat.com>
Mon, 10 Jul 2017 07:31:43 +0000 (15:31 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 10 Jul 2017 07:45:10 +0000 (15:45 +0800)
commit2bdb6627bfb1937cbc704286e272a312f93b8bc6
tree6249dc575098aadb6d640e41c31befd36f8cd7f7
parent11914dc351c05ce8a33ff71ba484677916e7fe36
os/filestore: do not free event not added

if an event fails to be added, it's freed by the callee. so we should
not try to free it again. that address could be re-used by the
allocator, to we might be freeing an irrelevent event.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/os/filestore/FileStore.cc