]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: trim_caps() do not dereference cap if it's removed 12145/head
authorKefu Chai <kchai@redhat.com>
Wed, 23 Nov 2016 05:01:23 +0000 (13:01 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 23 Nov 2016 05:04:18 +0000 (13:04 +0800)
commite9fbe39f0f91b7f6551d911f1a2519f5b35175a2
tree50369c9d571073a6ee130b7d82bf9d80edcd85f9
parentf0b7d36a92a137cfddaa252324d1d7021771636b
client: trim_caps() do not dereference cap if it's removed

this silences the warning of "Use of memory after it is freed" reported
by clang static analyzer.

Reported-by: Brad Hubbard <bhubbard@redhat.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/client/Client.cc
src/client/Client.h