Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
access: fix superuser variables leak
  • Loading branch information
perexg committed Oct 2, 2014
1 parent 38b2e31 commit 884ca54
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/access.c
Expand Up @@ -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);
}

0 comments on commit 884ca54

Please sign in to comment.