Eolite and Sysmon: fixed memory leak

git-svn-id: svn://kolibrios.org@7362 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2018-09-14 18:22:11 +00:00
parent 23c0258077
commit 6d726717fd
4 changed files with 3 additions and 2 deletions

View File

@ -175,6 +175,7 @@ void GetSizeDir(dword way)
}
}
free(cur_file);
free(dirbuf);
}
}

View File

@ -236,8 +236,8 @@ enum
}
else
{
ESDWORD[file_count] = 0;
ESDWORD[dir_buf] = free(buf);
ESDWORD[file_count] = 0;
}
return error;
}

View File

@ -2,5 +2,4 @@
@c-- sysmon.c
@rename *.com *.kex
@del warning.txt
@kpack sysmon.kex
@pause

View File

@ -105,6 +105,7 @@ void GetDirSizeAndCountFiles_loop(dword way)
}
}
free(cur_file);
free(dirbuf);
}
}