From 914b72c44f417d38eb0bf26d82eb19d115d67e15 Mon Sep 17 00:00:00 2001 From: Vladyslav Hrytsenko Date: Thu, 29 Sep 2022 16:21:40 +0300 Subject: [PATCH] code: fixed memleak in flecs query --- code/foundation/src/net/network_enet.c | 1 + 1 file changed, 1 insertion(+) diff --git a/code/foundation/src/net/network_enet.c b/code/foundation/src/net/network_enet.c index 2414523..19926cd 100644 --- a/code/foundation/src/net/network_enet.c +++ b/code/foundation/src/net/network_enet.c @@ -241,6 +241,7 @@ uint64_t network_server_get_entity(void *peer_id, uint16_t view_id) { for (int i = 0; i < it.count; i++) { if (p[i].peer == (uintptr_t)peer_id && p[i].view_id == view_id) { + ecs_iter_fini(&it); return it.entities[i]; } }