make code easier by removing match variable. check if cert was returned != NULL. free cert if there is some error. set variables to NULL after being freed, to avoid potential double free bugs.
make code easier by removing match variable.
check if cert was returned != NULL.
free cert if there is some error.
set variables to NULL after being freed,
to avoid potential double free bugs.


git-svn-id: 444ed946b9c2220da791e84c3dd156a05f92db99@2705 c6295689-39f2-0310-b995-f0e70906c6a9

dirkx/OpenSC.tokend,tidatida/OpenSC,mtrojnar/OpenSC,carlhoerberg/OpenSC,LudovicRousseau/OpenSC,philipWendland/OpenSC,viktorTarasov/OpenSC-SM,dengert/OpenSC,gentoo/OpenSC,martinpaljak/OpenSC,gemini/OpenSC,l1k/OpenSC,jpki/OpenSC,financeX/OpenSC,germanblanco/OpenSC,germanblanco/OpenSC,frankmorgner/OpenSC,UIKit0/OpenSC,ieugen/OpenSC,martinpaljak/OpenSC,frankmorgner/OpenSC,rickyepoderi/OpenSC,0x7678/OpenSC,hongquan/OpenSC-main,fabled/OpenSC,germanblanco/OpenSC,l1k/OpenSC,carlhoerberg/OpenSC,dirkx/OpenSC,jpki/OpenSC,adminmt/OpenSC,gentoo/OpenSC,dirkx/OpenSC,0x7678/OpenSC,velter/OpenSC,viktorTarasov/OpenSC-SM,marschap/pkg-opensc,jpki/OpenSC,mouse07410/OpenSC,carlhoerberg/OpenSC,ieugen/OpenSC,financeX/OpenSC,metsma/OpenSC,marschap/pkg-opensc,nmav/OpenSC,viktorTarasov/OpenSC-SM,tidatida/OpenSC,mtrojnar/OpenSC,gemini/OpenSC,marschap/pkg-opensc,UIKit0/OpenSC,metsma/OpenSC,0x7678/myOpenSC,Jakuje/OpenSC,CardContact/OpenSC,ieugen/OpenSC,aobaid/OpenSC,marschap/pkg-opensc,dirkx/OpenSC.tokend,hhonkanen/OpenSC,LudovicRousseau/OpenSC,velter/OpenSC,aobaid/OpenSC,gentoo/OpenSC,philipWendland/OpenSC,OpenSC/OpenSC,UIKit0/OpenSC,velter/OpenSC,AktivCo/OpenSC,ieugen/OpenSC,dirkx/OpenSC,0x7678/myOpenSC,philipWendland/OpenSC,martinpaljak/OpenSC,kasparsd/opensc-latvia-id,dirkx/OpenSC.tokend,tidatida/OpenSC,rickyepoderi/OpenSC,financeX/OpenSC,aobaid/OpenSC,dirkx/OpenSC.tokend,fabled/OpenSC,kasparsd/opensc-latvia-id,hongquan/OpenSC-main,kasparsd/opensc-latvia-id,rickyepoderi/OpenSC,dengert/OpenSC,0x7678/myOpenSC,adminmt/OpenSC,ieugen/OpenSC,OpenSC/OpenSC,LudovicRousseau/OpenSC,AktivCo/OpenSC,frankmorgner/OpenSC,Jakuje/OpenSC,carlhoerberg/OpenSC,0x7678/OpenSC,tidatida/OpenSC,dirkx/OpenSC,hhonkanen/OpenSC,aobaid/OpenSC,fabled/OpenSC,financeX/OpenSC,gemini/OpenSC,adminmt/OpenSC,frankmorgner/OpenSC,Jakuje/OpenSC,fabled/OpenSC,dengert/OpenSC,mtrojnar/OpenSC,velter/OpenSC,metsma/OpenSC,Jakuje/OpenSC,nmav/OpenSC,0x7678/OpenSC,carlhoerberg/OpenSC,financeX/OpenSC,gentoo/OpenSC,dirkx/OpenSC.tokend,hhonkanen/OpenSC,UIKit0/OpenSC,mouse07410/OpenSC,hongquan/OpenSC-main,AktivCo/OpenSC,dirkx/OpenSC.tokend,l1k/OpenSC,OpenSC/OpenSC,CardContact/OpenSC,CardContact/OpenSC,dirkx/OpenSC,0x7678/myOpenSC,gentoo/OpenSC,adminmt/OpenSC,0x7678/myOpenSC,kasparsd/opensc-latvia-id,mouse07410/OpenSC,nmav/OpenSC