Commit 41c4b82
committed
sudo_ldap_get_first_rdn: Fix memory leak when ldap_str2dn is missing
This assumes that ldap_memfree() simply calls free(), which appears
to be the case with all Linux/UNIX LDAP client libraries.
Thanks to Joshua Rogers for finding this.1 parent 3498d6a commit 41c4b82
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
381 | | - | |
| 381 | + | |
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
396 | | - | |
397 | | - | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
398 | 400 | | |
399 | 401 | | |
400 | 402 | | |
| |||
0 commit comments