coolkey: Fix AddressSanitizer: stack-use-after-scope
coolkey: Fix AddressSanitizer: stack-use-after-scope

Thanks oss-fuzz

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

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