From 2c659c1f47746b204fc3998f7a92544c8f054bf1 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 14 Oct 2015 12:13:05 +0200 Subject: [PATCH] memory leak: free building maintenance data --- src/kernel/building.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/kernel/building.c b/src/kernel/building.c index a234f55a6..7ffba178e 100644 --- a/src/kernel/building.c +++ b/src/kernel/building.c @@ -95,6 +95,7 @@ void bt_register(building_type * type) void free_buildingtype(void *ptr) { building_type *btype = (building_type *)ptr; free_construction(btype->construction); + free_construction(btype->maintenance); free(btype->_name); free(btype); }