release memory when done with it

This commit is contained in:
Sergei Golovin 2024-03-07 15:24:09 +04:00
parent 2d55f14799
commit 1284446609

View file

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