Workaround "Attempt to free unreferenced scalar..." on Linux 32-bit