From: David Levine Date: Mon, 30 May 2016 15:49:20 +0000 (-0400) Subject: Plugged leak in mh_oauth_cred_load(). X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/34353312aa81f0e0e3bdae9e8ade1c6755d61faf?ds=sidebyside Plugged leak in mh_oauth_cred_load(). --- diff --git a/sbr/oauth.c b/sbr/oauth.c index 57d4bbba..b3e47a93 100644 --- a/sbr/oauth.c +++ b/sbr/oauth.c @@ -954,6 +954,9 @@ mh_oauth_cred_load(FILE *fp, mh_oauth_ctx *ctx, const char *user) free(creds[i].user); } + /* No longer need user_creds. result just uses its creds member. */ + free(user_creds); + if (result == NULL) { set_err_details(ctx, MH_OAUTH_CRED_USER_NOT_FOUND, user); return NULL;