Skip to content
Snippets Groups Projects
Commit adc1543a authored by ale's avatar ale
Browse files

Fix a couple of minor memory leaks

parent 6a298df7
No related branches found
No related tags found
1 merge request!5Refactor ticket deserialization code
......@@ -285,6 +285,7 @@ static int sso_ticket_deserialize(sso_ticket_t *t, const char *s, int sz) {
}
*t = sso_ticket_new(user, service, domain, nonce, session_id, (const char **)groups, expires);
free(version);
return SSO_OK;
fail:
......@@ -296,6 +297,8 @@ static int sso_ticket_deserialize(sso_ticket_t *t, const char *s, int sz) {
free(service);
if (domain != NULL)
free(domain);
if (nonce != NULL)
free(nonce);
if (session_id != NULL)
free(session_id);
if (groups != NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment