From e599c0990f6afff4ec2519dd72276474cead5fa5 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 10 Feb 2003 23:26:44 +0000 Subject: [PATCH] mem leaks svn path=/trunk/boinc/; revision=888 --- checkin_notes | 7 +++++++ client/client_types.C | 3 +++ client/net_xfer.C | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 7c0e093974..2a856cb49f 100755 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/client/client_types.C b/client/client_types.C index 8165fd839c..58003ebd1f 100644 --- a/client/client_types.C +++ b/client/client_types.C @@ -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 diff --git a/client/net_xfer.C b/client/net_xfer.C index 427233cbbe..44194214d4 100644 --- a/client/net_xfer.C +++ b/client/net_xfer.C @@ -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) {