Memory leak fixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@10265 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2001-06-27 09:42:57 +00:00
parent 8970541166
commit 96aee78f1a
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2001-06-27 Richard Frith-Macdonald <rfm@gnu.org>
* Source/callframe.m: callframe_do_call_opts(),
callframe_build_return_opts() fixed memory leaks.
2001-06-26 Adam Fedor <fedor@gnu.org>
* Source/NSUserDefaults.m (+userLanguages): On MingW systems, check

View file

@ -558,6 +558,10 @@ callframe_do_call_opts (const char *encoded_types,
}
}
if (retval != 0)
NSZoneFree(NSDefaultMallocZone(), retval);
callframe_free(cframe);
return;
}
@ -758,7 +762,12 @@ callframe_build_return_opts (NSInvocation *inv,
}
(*decoder) (0, 0, 0, 0); /* Tell it we have finished. */
}
if (retval != 0)
NSZoneFree(NSDefaultMallocZone(), retval);
callframe_free(cframe);
return;
}
void