[PATCH 05 of 31] Upstream: properly allocate memory for tried flags