forked from KolibriOS/kolibrios
Eolite and Sysmon: fixed memory leak
git-svn-id: svn://kolibrios.org@7362 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
23c0258077
commit
6d726717fd
@ -175,6 +175,7 @@ void GetSizeDir(dword way)
|
||||
}
|
||||
}
|
||||
free(cur_file);
|
||||
free(dirbuf);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -236,8 +236,8 @@ enum
|
||||
}
|
||||
else
|
||||
{
|
||||
ESDWORD[file_count] = 0;
|
||||
ESDWORD[dir_buf] = free(buf);
|
||||
ESDWORD[file_count] = 0;
|
||||
}
|
||||
return error;
|
||||
}
|
||||
|
@ -2,5 +2,4 @@
|
||||
@c-- sysmon.c
|
||||
@rename *.com *.kex
|
||||
@del warning.txt
|
||||
@kpack sysmon.kex
|
||||
@pause
|
@ -105,6 +105,7 @@ void GetDirSizeAndCountFiles_loop(dword way)
|
||||
}
|
||||
}
|
||||
free(cur_file);
|
||||
free(dirbuf);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user