Bug fix: possible free of an uninitialized variable.