mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-12 00:51:08 +00:00
Fix minor memory leak.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@19885 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0012ff61d2
commit
c55cfbd9c6
1 changed files with 4 additions and 0 deletions
|
@ -3127,6 +3127,10 @@ agree, create a new GSUnicodeInlineString otherwise.
|
||||||
fmt[len] = '\0';
|
fmt[len] = '\0';
|
||||||
|
|
||||||
GSFormat((GSStr)self, fmt, argList, locale);
|
GSFormat((GSStr)self, fmt, argList, locale);
|
||||||
|
if (fmt != fbuf)
|
||||||
|
{
|
||||||
|
objc_free(fmt);
|
||||||
|
}
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue