commit | b54d9a7df841a97fe11ddd362e3baf693033ae2b | [log] [tgz] |
---|---|---|
author | Guy Harris <guy@alum.mit.edu> | Sat Oct 07 11:27:03 2017 -0700 |
committer | Guy Harris <guy@alum.mit.edu> | Sat Oct 07 11:27:03 2017 -0700 |
tree | f35631e0f892fd355973b458c33d5294077087ae | |
parent | 94ed856a200c9b3cfc46f4783f3c1063842de07f [diff] |
Plug some memory leaks. We allocate memory for the user name and password when using username/password authentication; free it if the authentication succeeds or fails. Fixes Coverity CIDs 1419022 and 1419023. While we're at it, rename variables to indicate what they're doing (they're not just two random strings, they're a user name and password), and put the string pointers into the scope of the "username/password authentication" case, just as the string lengths are.