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