Skip to content

Commit

Permalink
leak memory
Browse files Browse the repository at this point in the history
  • Loading branch information
skyguy94 committed Jun 3, 2015
1 parent 38b0bd8 commit b5a6eae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion poshring/Credential.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ protected void Dispose(bool disposing)
if (_disposed) return;

_disposed = true;
UnsafeAdvapi32.CredFree(_nativeCredential);
//Causes crash. FIXME
//_nativeCredential.CredentialBlob = IntPtr.Zero;
//UnsafeAdvapi32.CredFree(_nativeCredential);
}
}
}
2 changes: 1 addition & 1 deletion poshring/cmdlets/GetCredentialCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ protected override void ProcessRecord()
}
}
}
}
}

0 comments on commit b5a6eae

Please sign in to comment.