access: fix superuser variables leak

This commit is contained in:
Jaroslav Kysela 2014-10-02 08:58:15 +02:00
parent 38b2e31630
commit 884ca540aa

View file

@ -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);
}