Fixed several backend memory leacks

This commit is contained in:
Olof hagsand 2024-02-18 17:55:38 +01:00
parent 01327fc8f0
commit 8f2601bfdf
3 changed files with 10 additions and 3 deletions

View file

@ -253,6 +253,8 @@ startup_common(clixon_handle h,
goto done;
if (xmldb_dump(h, stdout, xt, WITHDEFAULTS_REPORT_ALL) < 0)
goto done;
if (xt)
xml_free(xt);
exit(0); /* This is fairly abrupt , but need to avoid side-effects of rewinding
stack. Alternative is to make a separate function stack for this. */
}