mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-22 05:02:00 +00:00
fix minor potential leaks
This commit is contained in:
parent
ed8be18af9
commit
149acc40ae
2 changed files with 11 additions and 0 deletions
|
@ -574,7 +574,10 @@ parseArray(ParserState *state)
|
|||
{
|
||||
if (NO == [array makeImmutable])
|
||||
{
|
||||
id a = array;
|
||||
|
||||
array = [array copy];
|
||||
RELEASE(a);
|
||||
}
|
||||
}
|
||||
return array;
|
||||
|
@ -638,7 +641,10 @@ parseObject(ParserState *state)
|
|||
{
|
||||
if (NO == [dict makeImmutable])
|
||||
{
|
||||
id d = dict;
|
||||
|
||||
dict = [dict copy];
|
||||
RELEASE(d);
|
||||
}
|
||||
}
|
||||
return dict;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue