mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
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:
parent
b9b50a9fef
commit
474a12b708
16 changed files with 93 additions and 74 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue