# HG changeset patch
# User Olaf Wintermann <olaf.wintermann@gmail.com>
# Date 1677226727 -3600
# Node ID e52a9fc670d2be1f2ee3fb98b2f7c769de6608db
# Parent  e03d4a00427acf93beb47daf72bd8fe070fc7f38
fix double free in case parsing a config file fails

diff -r e03d4a00427a -r e52a9fc670d2 src/server/config/serverconfig.c
--- a/src/server/config/serverconfig.c	Thu Feb 23 21:15:16 2023 +0100
+++ b/src/server/config/serverconfig.c	Fri Feb 24 09:18:47 2023 +0100
@@ -418,7 +418,6 @@
     
     if(pos < content.length || err) {
         // content not fully parsed because of an error
-        cxMempoolDestroy(mp);
         return NULL;
     }