mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
fix minor potential leaks
This commit is contained in:
parent
ed8be18af9
commit
149acc40ae
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2021-09-16 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSJSONSerialization.m:
|
||||
Fix minor potential leaks.
|
||||
|
||||
2021-08-27 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/nstzfile.h: deleted (merged into tzdb.h)
|
||||
|
|
|
@ -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…
Reference in a new issue