Commit a7e57002 introduced a bug where a variable was freed before possible use in an error message. This is now fixed.