Author: ekohl
Date: Mon Oct 8 22:48:08 2012
New Revision: 57522
URL:
http://svn.reactos.org/svn/reactos?rev=57522&view=rev
Log:
[SAMSRV]
Make the SamIFree routines clean-up properly.
Modified:
trunk/reactos/dll/win32/samsrv/samsrv.c
Modified: trunk/reactos/dll/win32/samsrv/samsrv.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/samsrv/samsrv.c?…
==============================================================================
--- trunk/reactos/dll/win32/samsrv/samsrv.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/samsrv/samsrv.c [iso-8859-1] Mon Oct 8 22:48:08 2012
@@ -81,6 +81,8 @@
}
MIDL_user_free(Ptr->Element);
+ Ptr->Element = NULL;
+ Ptr->Count = 0;
}
}
}
@@ -93,7 +95,11 @@
if (Ptr != NULL)
{
if (Ptr->Element != NULL)
+ {
MIDL_user_free(Ptr->Element);
+ Ptr->Element = NULL;
+ Ptr->Count = 0;
+ }
}
}