[ros-diffs] [gedmurphy] 23439: doh, rushed code leads to leaked resources. thanks lkjasa for pointing it out.

gedmurphy at svn.reactos.org gedmurphy at svn.reactos.org
Thu Aug 3 22:32:11 CEST 2006


Author: gedmurphy
Date: Fri Aug  4 00:32:10 2006
New Revision: 23439

URL: http://svn.reactos.org/svn/reactos?rev=23439&view=rev
Log:
doh, rushed code leads to leaked resources.
thanks lkjasa for pointing it out.

Modified:
    trunk/reactos/dll/cpl/ncpa/tcpip_properties.c

Modified: trunk/reactos/dll/cpl/ncpa/tcpip_properties.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/ncpa/tcpip_properties.c?rev=23439&r1=23438&r2=23439&view=diff
==============================================================================
--- trunk/reactos/dll/cpl/ncpa/tcpip_properties.c (original)
+++ trunk/reactos/dll/cpl/ncpa/tcpip_properties.c Fri Aug  4 00:32:10 2006
@@ -516,5 +516,8 @@
         ShowError(hParent, IDS_CANNOT_CREATE_PROPSHEET);
     }
 
+    if (tpszCaption != NULL)
+        HeapFree(GetProcessHeap(), 0, tpszCaption);
+
     return;
 }




More information about the Ros-diffs mailing list