Fix unlikely memory leak in KCM client

Coverity found a potential leak in my last cc_kcm.c change.  Here is a fix.  I am reusing ticket 8002 since it hasn't been pulled up yet.