]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
access: fix superuser variables leak
authorJaroslav Kysela <perex@perex.cz>
Thu, 2 Oct 2014 06:58:15 +0000 (08:58 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 2 Oct 2014 06:58:15 +0000 (08:58 +0200)
src/access.c

index cf2c763102503b3ec88346b380facb1bf24aa904..a278398b175d455cf398cfd4a3e5fdce600c5fa1 100644 (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);
 }