mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Fix memory leak in disk_state_parse_commits().
This patch fixes a memory leak in disk_state_parse_commits() where if commit is NULL, we continue the internal loop, but without ever freeing the args variable. See: Coverity CID 1437441.
This commit is contained in:
parent
dcbfee246f
commit
3395de51a0
@ -409,6 +409,7 @@ disk_state_parse_commits(sr_state_t *state,
|
||||
if (commit == NULL) {
|
||||
/* Ignore badly formed commit. It could also be a authority
|
||||
* fingerprint that we don't know about so it shouldn't be used. */
|
||||
smartlist_free(args);
|
||||
continue;
|
||||
}
|
||||
/* We consider parseable commit from our disk state to be valid because
|
||||
|
Loading…
Reference in New Issue
Block a user