From c4d3634c8e74e0fe44b52a7d2f189cbd51edf029 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jerry=20Lundstr=C3=B6m?= Date: Thu, 22 Aug 2024 16:46:49 +0200 Subject: [PATCH] Sonar - Fix sonarcloud issue --- src/config_hooks.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/config_hooks.c b/src/config_hooks.c index 47b3305e..9601eed3 100644 --- a/src/config_hooks.c +++ b/src/config_hooks.c @@ -637,6 +637,7 @@ int load_knowntlds(const char* file) if (!(new_KnownTLDS = xrealloc(new_KnownTLDS, (new_size + 1) * sizeof(char*)))) { dsyslog(LOG_ERR, "out of memory"); + fclose(fp); return 0; } new_KnownTLDS[new_size] = ".";