leak: duplicate assignment to building_type.name in tests

This commit is contained in:
Enno Rehling 2015-10-14 14:10:35 +02:00
parent 2abdba9e8a
commit e6f2864327
1 changed files with 0 additions and 1 deletions

View File

@ -154,7 +154,6 @@ building_type * test_create_buildingtype(const char * name)
{
building_type *btype = bt_get_or_create(name);
btype->flags = BTF_NAMECHANGE;
btype->_name = _strdup(name);
if (!btype->construction) {
btype->construction = (construction *)calloc(sizeof(construction), 1);
btype->construction->skill = SK_BUILDING;