clear root node during conf de-init. also create root_backup when the root is restored back using it

remotes/origin/HEAD
Anoop Saldanha 13 years ago committed by Victor Julien
parent ab3fcb01f9
commit d7a93b6fcd

@ -543,6 +543,7 @@ void
ConfRestoreContextBackup(void)
{
root = root_backup;
root_backup = NULL;
return;
}
@ -553,8 +554,10 @@ ConfRestoreContextBackup(void)
void
ConfDeInit(void)
{
if (root != NULL)
if (root != NULL) {
ConfNodeFree(root);
root = NULL;
}
SCLogDebug("configuration module de-initialized");
}

Loading…
Cancel
Save