Remove unnecessary free of global stack on error