[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r275 - in branches/GNUnet06/src/util: . win
From: |
durner |
Subject: |
[GNUnet-SVN] r275 - in branches/GNUnet06/src/util: . win |
Date: |
Wed, 16 Feb 2005 11:37:17 -0800 (PST) |
Author: durner
Date: 2005-02-16 11:37:16 -0800 (Wed, 16 Feb 2005)
New Revision: 275
Modified:
branches/GNUnet06/src/util/identity.c
branches/GNUnet06/src/util/statuscalls.c
branches/GNUnet06/src/util/win/win.cc
Log:
Another leak
Modified: branches/GNUnet06/src/util/identity.c
===================================================================
--- branches/GNUnet06/src/util/identity.c 2005-02-16 03:52:42 UTC (rev
274)
+++ branches/GNUnet06/src/util/identity.c 2005-02-16 19:37:16 UTC (rev
275)
@@ -266,7 +266,9 @@
_("Could not find an IP address for "
"interface '%s'.\n"),
interfaces);
-
+
+ GlobalFree(pTable);
+ GlobalFree(pAddrTable);
return SYSERR;
}
else if (iAddrCount > 1)
Modified: branches/GNUnet06/src/util/statuscalls.c
===================================================================
--- branches/GNUnet06/src/util/statuscalls.c 2005-02-16 03:52:42 UTC (rev
274)
+++ branches/GNUnet06/src/util/statuscalls.c 2005-02-16 19:37:16 UTC (rev
275)
@@ -728,6 +728,8 @@
txdiff += txnew - last_net_results[ifnum].last_out;
last_net_results[ifnum].last_out = txnew;
+
+ GlobalFree(pTable);
}
}
else
Modified: branches/GNUnet06/src/util/win/win.cc
===================================================================
--- branches/GNUnet06/src/util/win/win.cc 2005-02-16 03:52:42 UTC (rev
274)
+++ branches/GNUnet06/src/util/win/win.cc 2005-02-16 19:37:16 UTC (rev
275)
@@ -272,7 +272,12 @@
iItm = SendMessage(hCombo, CB_ADDSTRING, 0, (LPARAM) szEntry);
if (iItm == -1)
+ {
+ GlobalFree(pAddrTable);
+ GlobalFree(pTable);
+
return NO;
+ }
if (pAddrTable->table[dwIfIdx].dwIndex == dwExternalNIC)
SendMessage(hCombo, CB_SETCURSEL, iItm, 0);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r275 - in branches/GNUnet06/src/util: . win,
durner <=