From: Jaroslav Kysela Date: Thu, 2 Oct 2014 06:58:15 +0000 (+0200) Subject: access: fix superuser variables leak X-Git-Tag: v4.1~1234 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=884ca540aaf848bd84de28bc059984c4c22f2d40;p=thirdparty%2Ftvheadend.git access: fix superuser variables leak --- diff --git a/src/access.c b/src/access.c index cf2c76310..a278398b1 100644 --- a/src/access.c +++ b/src/access.c @@ -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); }