/* Recovery of dead resources on error handled by the Lua GC as standard in the case of RAM loading. In the case of loading an LFS image into flash, the error recovery could be done through the S->protogc list, but given that the immediate action is to restart the CPU, there is little point in adding the extra functionality to recover these dangling resources.  */
static void LoadProtos(LoadState *S, Proto *f)
/* Recovery of dead resources on error handled by the Lua GC as standard in the case of RAM loading. In the case of loading an LFS image into flash, the error recovery could be done through the S->protogc list, but given that the immediate action is to restart the CPU, there is little point in adding the extra functionality to recover these dangling resources.  */
static void LoadProtos(LoadState *S, Proto *f)
{
    f->p = StoreAV(S, cast(void **, p), n);
    luaM_freearray(S->L, p, n);
  }
}