From 8f391689d71adac161e723be3094639ee285fb57 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Fri, 19 Jan 2024 15:22:13 +0100 Subject: [PATCH] sources/config.c: fix memory leak found by cppcheck --- sources/config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/config.c b/sources/config.c index b763a18be..df5b1eb43 100644 --- a/sources/config.c +++ b/sources/config.c @@ -109,6 +109,7 @@ od_config_listen_t *od_config_listen_add(od_config_t *config) listen->tls_opts = od_tls_opts_alloc(); if (listen->tls_opts == NULL) { + free(listen); return NULL; }