mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
(newDecodingWithConnection:timeout:): On timeout use objc_free to free
the buffer. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@56 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
63a452e4f5
commit
19093b25b0
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/* Implementation of coder object for remote messaging
|
||||
Copyright (C) 1994 Free Software Foundation, Inc.
|
||||
Copyright (C) 1994, 1995 Free Software Foundation, Inc.
|
||||
|
||||
Written by: R. Andrew McCallum <mccallum@gnu.ai.mit.edu>
|
||||
Date: July 1994
|
||||
|
@ -89,7 +89,7 @@ static BOOL debug_connected_coder = NO;
|
|||
timeout:timeout];
|
||||
if (len < 0) /* timeout */
|
||||
{
|
||||
[self free];
|
||||
(*objc_free)(b);
|
||||
return nil;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue