Commit 47366561 authored by godog's avatar godog

sso: free signed_data on error

found when playing with https://github.com/facebook/infer
parent 9d64aede
......@@ -281,6 +281,7 @@ int sso_ticket_sign(sso_ticket_t t, const unsigned char *secret_key, char *out,
(unsigned long long)serialized_size,
secret_key) != 0) {
free(serialized);
free(signed_data);
return SSO_ERR_SIGNATURE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment