pkcs15-cert: Avoid memory leaks
pkcs15-cert: Avoid memory leaks

Thanks oss-fuzz

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

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