1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-12 10:44:58 +03:00

Merge pull request #275 from chipitsine/master

cppcheck findings
This commit is contained in:
Moataz Elmasry
2018-02-01 00:06:08 +01:00
committed by GitHub
7 changed files with 21 additions and 11 deletions

View File

@ -2338,6 +2338,11 @@ void CfgDeleteFolder(FOLDER *f)
return;
}
if(f->Folders == NULL)
{
return;
}
// Remove all subfolders
num = LIST_NUM(f->Folders);
ff = Malloc(sizeof(FOLDER *) * num);