]> diplodocus.org Git - nmh/commit
mh_oauth_cred_fn(): Always freshly allocate result.
authorRalph Corderoy <ralph@inputplus.co.uk>
Tue, 12 Sep 2017 13:32:33 +0000 (14:32 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Tue, 12 Sep 2017 14:00:31 +0000 (15:00 +0100)
commitf1049604f9c88b9c8470bff8baee72414b724a9a
treefd35cc69057b46fe478e2e2fd045d0b487a8186e
parent5436cec1e0687a896ac15b1e8aa7808f172a396e
mh_oauth_cred_fn(): Always freshly allocate result.

If a `credential-file' context was found, and started with a `/', then
the m_defs's n_field was returned, otherwise a newly allocated string.
The caller couldn't tell whether to free the result or not so memory was
leaked.  Alter it to always freshly allocate the result.  Fixes
803f25412.
sbr/oauth_prof.c