From e70d316afcf00979851e82b73e23f55d92a6327a Mon Sep 17 00:00:00 2001 From: peter15914 <48548636+peter15914@users.noreply.github.com> Date: Sun, 5 Jan 2025 00:03:34 +0500 Subject: [PATCH] Fix possible memory leak --- common/os_calls.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/os_calls.c b/common/os_calls.c index afd5a958..580ed050 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -2344,6 +2344,7 @@ g_get_open_fds(int min, int max) // Descriptor is open if (!list_add_item(result, i)) { + g_free(fds); goto nomem; } }