Fixing a memory leak in check result processing