gentilkiwi / mimikatz

A little tool to play with Windows security
http://blog.gentilkiwi.com/mimikatz
19.49k stars 3.74k forks source link

Fix potential memory leaks #410

Closed joshterrill closed 6 months ago

joshterrill commented 2 years ago

As outlined by @rachyyyy in

https://github.com/gentilkiwi/mimikatz/issues/406 and https://github.com/gentilkiwi/mimikatz/issues/405

Anything that calls ldap_get_dn must be freed. There are several other implementations of this method that do get freed in the codebase, so it looks like it was just missed in a couple of places.