From e6f2864327d6d14e4b3c6d99e5401805b97532ce Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 14 Oct 2015 14:10:35 +0200 Subject: [PATCH] leak: duplicate assignment to building_type.name in tests --- src/tests.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/tests.c b/src/tests.c index 00188edca..45f2036f6 100644 --- a/src/tests.c +++ b/src/tests.c @@ -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;