(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:
mccallum 1995-01-13 18:09:32 +00:00
parent 63a452e4f5
commit 19093b25b0

View file

@ -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;
}