fixed memory leak
fixed memory leak

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

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