mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
([ConstantCollection -_decodeContentsWithCoder:]): Use alloca(), not
objc_malloc(), plugging memory leak. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1356 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3e11ebacf5
commit
2e400e6677
1 changed files with 1 additions and 1 deletions
|
@ -649,7 +649,7 @@
|
|||
[aCoder decodeValueOfCType:@encode(unsigned)
|
||||
at:&count
|
||||
withName:NULL];
|
||||
OBJC_MALLOC(content_array, id, count);
|
||||
content_array = alloca (sizeof (id) * count);
|
||||
for (i = 0; i < count; i++)
|
||||
[aCoder decodeObjectAt: &(content_array[i])
|
||||
withName:NULL];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue