minor cleanups

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32234 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2011-02-19 19:42:42 +00:00
parent b9b50a9fef
commit 474a12b708
16 changed files with 93 additions and 74 deletions

View file

@ -282,7 +282,7 @@ GSPrivateSymbolPath(Class theClass, Category *theCategory)
{
if (len + sizeof(char)*19 > sizeof(buf))
{
p = objc_malloc(len + sizeof(char)*19);
p = malloc(len + sizeof(char)*19);
if (p == NULL)
{
@ -300,7 +300,7 @@ GSPrivateSymbolPath(Class theClass, Category *theCategory)
if (len + sizeof(char)*23 > sizeof(buf))
{
p = objc_malloc(len + sizeof(char)*23);
p = malloc(len + sizeof(char)*23);
if (p == NULL)
{
@ -321,7 +321,7 @@ GSPrivateSymbolPath(Class theClass, Category *theCategory)
if (p != buf)
{
objc_free(p);
free(p);
}
if (ret)