mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
Fix leak of open file descriptor in NSData -writeToFile:atomically: on
systems where mkstemp is defined. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38344 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3f2e3c9ecd
commit
472d8232b1
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2015-02-16 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||||
|
|
||||||
|
* Source/NSData.m (writeToFile:options:error:): Fix leak of open
|
||||||
|
file descriptor on systems where mkstemp is defined.
|
||||||
|
|
||||||
2015-02-15 Richard Frith-Macdonald <rfm@gnu.org>
|
2015-02-15 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* config/objc-sys-dynamic.m4: Check for windows before anything else
|
* config/objc-sys-dynamic.m4: Check for windows before anything else
|
||||||
|
|
|
@ -1583,8 +1583,8 @@ failure:
|
||||||
strncpy(thePath, theRealPath, sizeof(thePath) - 1);
|
strncpy(thePath, theRealPath, sizeof(thePath) - 1);
|
||||||
thePath[sizeof(thePath) - 1] = '\0';
|
thePath[sizeof(thePath) - 1] = '\0';
|
||||||
}
|
}
|
||||||
# endif
|
|
||||||
theFile = fopen(thePath, "wb");
|
theFile = fopen(thePath, "wb");
|
||||||
|
# endif
|
||||||
|
|
||||||
if (theFile == 0)
|
if (theFile == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue