From b7bd4dcf42c08c9de61def753899800b502d0429 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Wed, 16 Jun 2021 14:03:10 +0300 Subject: [PATCH 46/46] Tex: Free data of the messages received by worker thread See osdn #42462 Signed-off-by: Marko Lindqvist --- ai/tex/texaiworld.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ai/tex/texaiworld.c b/ai/tex/texaiworld.c index a426cb4869..8a314d773a 100644 --- a/ai/tex/texaiworld.c +++ b/ai/tex/texaiworld.c @@ -205,6 +205,8 @@ void texai_city_info_recv(void *data, enum texaimsgtype msgtype) info->id); } } + + free(info); } /**********************************************************************//** @@ -246,6 +248,8 @@ void texai_city_destruction_recv(void *data) log_error("Tex: requested removal of city id %d that's not known.", info->id); } + + free(info); } /**********************************************************************//** @@ -317,6 +321,8 @@ void texai_unit_info_recv(void *data, enum texaimsgtype msgtype) punit->utype = type; } + + free(info); } /**********************************************************************//** @@ -353,6 +359,8 @@ void texai_unit_destruction_recv(void *data) log_error("Tex: requested removal of unit id %d that's not known.", info->id); } + + free(info); } /**********************************************************************//** @@ -388,4 +396,6 @@ void texai_unit_moved_recv(void *data) log_error("Tex: requested moving of unit id %d that's not known.", info->id); } + + free(info); } -- 2.30.2