gentilkiwi / mimikatz

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

Fix potential memory leaks #410

Closed joshterrill closed 1 month ago

joshterrill commented 1 year 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.