mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Memory leak in tor_cert_parse. CID gi1301381
This commit is contained in:
parent
3262f3c3f6
commit
3df6f8591d
@ -145,10 +145,12 @@ tor_cert_parse(const uint8_t *encoded, const size_t len)
|
||||
}
|
||||
}
|
||||
|
||||
return cert;
|
||||
goto done;
|
||||
err:
|
||||
ed25519_cert_free(parsed);
|
||||
tor_cert_free(cert);
|
||||
cert = NULL;
|
||||
done:
|
||||
ed25519_cert_free(parsed);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user