fixed memory leak
fixed memory leak

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

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