fixed memory leak
fixed memory leak

fixes https://oss-fuzz.com/testcase-detail/5738653415636992

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