]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/PyState: fix leak if `type` is unknown
authorKefu Chai <kchai@redhat.com>
Sat, 8 Jul 2017 12:18:18 +0000 (20:18 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 8 Jul 2017 12:18:20 +0000 (20:18 +0800)
commit6f7bcfbfd7f43e5e4ad827bc86980558f56a8041
tree9cca635b263f261d759028bf57da226c548bdf33
parent5d71220838679dadc61393184c7746b6ace501f8
mgr/PyState: fix leak if `type` is unknown

this silences a clang analyzer warning:

Potential leak of memory pointed to by 'c'

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mgr/PyState.cc