mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
fix for bug #42483
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37934 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c33c21b27a
commit
245e957635
4 changed files with 22 additions and 4 deletions
|
@ -2068,9 +2068,9 @@ bases:
|
|||
uint8_t *tmp;
|
||||
|
||||
#if GS_WITH_GC
|
||||
tmp = NSAllocateCollectable(slen, 0);
|
||||
tmp = NSAllocateCollectable(slen + extra, 0);
|
||||
#else
|
||||
tmp = NSZoneMalloc(zone, slen);
|
||||
tmp = NSZoneMalloc(zone, slen + extra);
|
||||
if (ptr != buf && ptr != *dst)
|
||||
{
|
||||
NSZoneFree(zone, ptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue