mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Free variable before returning
This commit is contained in:
@@ -138,7 +138,10 @@ bool insetupVarsArray(char * str)
|
||||
char * domain = calloc(strlen(setupVarsArray[i]),sizeof(char));
|
||||
strncpy(domain,setupVarsArray[i]+1,strlen(setupVarsArray[i])-1);
|
||||
if(strstr(str, domain) != NULL)
|
||||
{
|
||||
free(domain);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user