pki: Fix resource leak on error.
pki: Fix resource leak on error.

Distrotech/libssh,mwgoldsmith/libssh,wangshawn/libssh,sebadoom/libssh,pouete/libssh,elastichosts/libssh,DouglasHeriot/libssh,sebadoom/libssh,taikoo/libssh,nviennot/libssh,Distrotech/libssh,bigcat26/libssh-mod,mwgoldsmith/ssh,taikoo/libssh,sebadoom/libssh,DouglasHeriot/libssh,taikoo/libssh,robxu9/libssh,kedazo/libssh,wangshawn/libssh,bigcat26/libssh-mod,DouglasHeriot/libssh,mwgoldsmith/libssh,pouete/libssh,Distrotech/libssh,elastichosts/libssh,kedazo/libssh,kedazo/libssh,mwgoldsmith/ssh,Distrotech/libssh,kedazo/libssh,mwgoldsmith/ssh,robxu9/libssh,wangshawn/libssh,mwgoldsmith/ssh,nviennot/libssh,pouete/libssh,wangshawn/libssh,nviennot/libssh,bigcat26/libssh-mod,mwgoldsmith/libssh,robxu9/libssh,nviennot/libssh,sebadoom/libssh,mwgoldsmith/libssh,taikoo/libssh,elastichosts/libssh,DouglasHeriot/libssh,pouete/libssh,bigcat26/libssh-mod,robxu9/libssh