pkcs15-pubkey: Avoid memory leaks
pkcs15-pubkey: Avoid memory leaks

Thanks oss-fuzz

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18758

LudovicRousseau/OpenSC,Jakuje/OpenSC,mouse07410/OpenSC,philipWendland/OpenSC,frankmorgner/OpenSC,LudovicRousseau/OpenSC,frankmorgner/OpenSC,hongquan/OpenSC-main,fabled/OpenSC,AktivCo/OpenSC,CardContact/OpenSC,LudovicRousseau/OpenSC,CardContact/OpenSC,dengert/OpenSC,OpenSC/OpenSC,rickyepoderi/OpenSC,CardContact/OpenSC,metsma/OpenSC,rickyepoderi/OpenSC,Jakuje/OpenSC,metsma/OpenSC,fabled/OpenSC,Jakuje/OpenSC,philipWendland/OpenSC,hongquan/OpenSC-main,fabled/OpenSC,philipWendland/OpenSC,fabled/OpenSC,dengert/OpenSC,rickyepoderi/OpenSC,OpenSC/OpenSC,hongquan/OpenSC-main,AktivCo/OpenSC,AktivCo/OpenSC,mouse07410/OpenSC,Jakuje/OpenSC,frankmorgner/OpenSC,metsma/OpenSC,dengert/OpenSC,frankmorgner/OpenSC,mouse07410/OpenSC,OpenSC/OpenSC