From 6c130ccadd293a55b967eab3a3a1a207be4a224b Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Mon, 20 Mar 2023 02:16:20 +0200 Subject: [PATCH 31/31] AI: Remove double zeroing from ai_traits_close() See osdn #46370 Signed-off-by: Marko Lindqvist --- ai/aitraits.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ai/aitraits.c b/ai/aitraits.c index 215fc858a4..c486a09e98 100644 --- a/ai/aitraits.c +++ b/ai/aitraits.c @@ -58,8 +58,7 @@ void ai_traits_init(struct player *pplayer) **************************************************************************/ void ai_traits_close(struct player *pplayer) { - FC_FREE(pplayer->ai_common.traits); - + free(pplayer->ai_common.traits); pplayer->ai_common.traits = NULL; } -- 2.39.2