access: fix superuser variables leak
This commit is contained in:
parent
38b2e31630
commit
884ca540aa
1 changed files with 4 additions and 0 deletions
|
@ -1190,5 +1190,9 @@ access_done(void)
|
|||
pthread_mutex_lock(&global_lock);
|
||||
while ((ae = TAILQ_FIRST(&access_entries)) != NULL)
|
||||
access_entry_destroy(ae);
|
||||
free((void *)superuser_username);
|
||||
superuser_username = NULL;
|
||||
free((void *)superuser_password);
|
||||
superuser_password = NULL;
|
||||
pthread_mutex_unlock(&global_lock);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue