Skip to content
Snippets Groups Projects
Commit 271045d7 authored by Jan Hák's avatar Jan Hák Committed by Daniel Salzman
Browse files

clang analyzer: double free fix

parent de3363bd
No related branches found
No related tags found
No related merge requests found
Pipeline #81062 passed
......@@ -157,6 +157,7 @@ static bool params_deserialize(const MDB_val *val, key_params_t *params)
if (future > 0) {
if (future < sizeof(params->timing.revoke)) {
free(params->public_key.data);
params->public_key.data = NULL;
return false;
}
// 'revoked' timer is part of 'future' section since it was added later
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment