]> granicus.if.org Git - mutt/commit
Fix memory leak in mutt_sasl_cb_pass.
authorWill Fiveash <Will.Fiveash@Sun.COM>
Sat, 16 Jul 2016 21:04:29 +0000 (14:04 -0700)
committerWill Fiveash <Will.Fiveash@Sun.COM>
Sat, 16 Jul 2016 21:04:29 +0000 (14:04 -0700)
commit4c3fa09f102bbad32bd88db1db53e55ed5939b31
treec757f36ba7ee56d81a0f308278afc3752011e6cd
parent717cbe335930c4db610051f257254254bcd0fbe0
Fix memory leak in mutt_sasl_cb_pass.

SASL doesn't free the sasl_secret_t, so this was leaking.  Instead,
keep our own pointer to it, and safe_realloc() each time.

sasl_secret_t doesn't need the data field null terminated, so memcpy
the password over.
mutt_sasl.c