mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Fix use of potentially invalid value from heap
This commit is contained in:
parent
36da869287
commit
feac65a23f
1 changed files with 2 additions and 2 deletions
|
@ -369,8 +369,8 @@ _GSDebugAllocationAdd(Class c, id o)
|
|||
{
|
||||
bytes = the_table[num_classes].nominal_size;
|
||||
}
|
||||
the_table[num_classes].bytes += bytes;
|
||||
the_table[num_classes].totalb += bytes;
|
||||
the_table[num_classes].bytes = bytes;
|
||||
the_table[num_classes].totalb = bytes;
|
||||
the_table[num_classes].lastb = 0;
|
||||
the_table[num_classes].lastc = 0;
|
||||
the_table[num_classes].totalc = 1;
|
||||
|
|
Loading…
Reference in a new issue