mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Fix memory leak in dirvote_create_microdescriptor
Found by George, who gets a cookie.
This commit is contained in:
parent
d3e1e458e1
commit
a9eed33111
@ -3515,7 +3515,7 @@ dirvote_create_microdescriptor(const routerinfo_t *ri)
|
||||
char *key = NULL, *summary = NULL, *family = NULL;
|
||||
size_t keylen;
|
||||
smartlist_t *chunks = smartlist_new();
|
||||
char *output;
|
||||
char *output = NULL;
|
||||
|
||||
if (crypto_pk_write_public_key_to_string(ri->onion_pkey, &key, &keylen)<0)
|
||||
goto done;
|
||||
@ -3547,6 +3547,7 @@ dirvote_create_microdescriptor(const routerinfo_t *ri)
|
||||
}
|
||||
|
||||
done:
|
||||
tor_free(output);
|
||||
tor_free(key);
|
||||
tor_free(summary);
|
||||
tor_free(family);
|
||||
|
Loading…
Reference in New Issue
Block a user