mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
release memory when done with it
This commit is contained in:
parent
2d55f14799
commit
1284446609
1 changed files with 2 additions and 1 deletions
|
@ -440,7 +440,7 @@
|
|||
status = [[_response headerNamed: @"Http"] value];
|
||||
}
|
||||
statusData = [status dataUsingEncoding: NSUTF8StringEncoding];
|
||||
data = [NSMutableData dataWithData: statusData];
|
||||
data = [[NSMutableData alloc] initWithData: statusData];
|
||||
[_response deleteHeaderNamed: @"http"];
|
||||
[data appendBytes: crlf length: 2];
|
||||
|
||||
|
@ -450,6 +450,7 @@
|
|||
NSDebugLog(@"%@: about to send response\n%@", self, _response);
|
||||
|
||||
[_cfh writeData: data];
|
||||
RELEASE(data);
|
||||
}
|
||||
|
||||
- (void)_resetCycle
|
||||
|
|
Loading…
Reference in a new issue