mem leaks

svn path=/trunk/boinc/; revision=888
This commit is contained in:
David Anderson 2003-02-10 23:26:44 +00:00
parent 846dc4db0a
commit e599c0990f
3 changed files with 11 additions and 1 deletions

View File

@ -3131,3 +3131,10 @@ David Feb 8 2003
html_user/
various
David Feb 10 2003
- fix memory leaks
client/
client_types.C
net_xfer.C

View File

@ -237,6 +237,9 @@ FILE_INFO::FILE_INFO() {
}
FILE_INFO::~FILE_INFO() {
if (xml_signature) free(xml_signature);
if (file_signature) free(file_signature);
if (signed_xml) free(signed_xml);
}
// Set the appropriate permissions depending on whether

View File

@ -268,7 +268,7 @@ int NET_XFER_SET::do_select(int max_bytes, int& bytes_transferred, struct timeva
#elif __APPLE__
getsockopt(fd, SOL_SOCKET, SO_ERROR, &n, (int *)&intsize);
#else
getsockopt(fd, SOL_SOCKET, SO_ERROR, &n, (unsigned int *)&intsize);
getsockopt(fd, SOL_SOCKET, SO_ERROR, (void*)&n, (int *)&intsize);
#endif
if (n) {
if (log_flags.net_xfer_debug) {