[sipxtapi] r1428 committed - Applied patch from Saab:...

3 views
Skip to first unread message

codesite...@google.com

unread,
Feb 7, 2011, 5:48:02 PM2/7/11
to sipxtapi...@googlegroups.com
Revision: 1428
Author: jaroslavl1
Date: Mon Feb 7 14:41:19 2011
Log: Applied patch from Saab:
- Fixed memory leak: in getBestInterfaceName the pIpInterfaceInfo structure
was never freed.
http://code.google.com/p/sipxtapi/source/detail?r=1428

Modified:
/trunk/sipXportLib/src/os/Wnt/OsNetworkWnt.cpp

=======================================
--- /trunk/sipXportLib/src/os/Wnt/OsNetworkWnt.cpp Sun Jan 24 15:11:48 2010
+++ /trunk/sipXportLib/src/os/Wnt/OsNetworkWnt.cpp Mon Feb 7 14:41:19 2011
@@ -565,6 +565,8 @@
{
OsSysLog::add(FAC_KERNEL, PRI_ERR, "Cannot determine the
best interface name, GetInterfaceInfo failed with error %d\n", dwRes);
}
+ // Free the PIP_INTERFACE_INFO structure
+ free(pIpInterfaceInfo);
}
else
{

Reply all
Reply to author
Forward
0 new messages