From b0fc3259cd990cb5601c1f28c0fb9d47800525c6 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 1 May 2022 20:12:20 +0300 Subject: [PATCH 60/60] Fix calc_activity() memory leak See osdn #44492 Signed-off-by: Marko Lindqvist --- common/clientutils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/clientutils.c b/common/clientutils.c index deeabf1eb6..3c42ef5cc0 100644 --- a/common/clientutils.c +++ b/common/clientutils.c @@ -175,6 +175,8 @@ static void calc_activity(struct actcalc *calc, const struct tile *ptile, calc->activity_turns[act] = turns; } } activity_type_iterate_end; + + free(t); } /************************************************************************//** -- 2.35.1