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

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

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

Loading…
Cancel
Save