fix double free in case parsing a config file fails

Fri, 24 Feb 2023 09:18:47 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Fri, 24 Feb 2023 09:18:47 +0100
changeset 455
e52a9fc670d2
parent 454
e03d4a00427a
child 456
52a4e1ea043e

fix double free in case parsing a config file fails

src/server/config/serverconfig.c file | annotate | diff | comparison | revisions
--- 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;
     }
     

mercurial