mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 21:49:32 +02:00
* Fixed memory allocation in registration
git-svn-id: trunk@16163 -
This commit is contained in:
parent
d3bdf2577c
commit
38aacec93d
@ -385,7 +385,7 @@ Var
|
|||||||
RV : Integer;
|
RV : Integer;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
GetMem(P,SizeOf(TServiceTableEntry)*FMapper.DaemonDefs.Count+1);
|
GetMem(P,SizeOf(TServiceTableEntry)*(FMapper.DaemonDefs.Count+1));
|
||||||
Try
|
Try
|
||||||
C:=FMapper.DaemonDefs.Count;
|
C:=FMapper.DaemonDefs.Count;
|
||||||
For I:=0 to C-1 do
|
For I:=0 to C-1 do
|
||||||
|
Loading…
Reference in New Issue
Block a user