.
The CredFree function frees a buffer returned by any of the credentials management functions.
1/8/2015 9:52:16 PM - anonymous
.
static extern bool CredFree([In] IntPtr buffer);
.
Declare Function CredFree Lib "advapi32.dll" (Buffer As IntPtr) As Boolean
.
.
// to release it later on calling CredFree().
.
NativeMethods.CredFree(marshaledCredential);