Add comment indicating a resource leak is not really a resource leak
While possibly obvious to those investigating the code, coverity complains about this out of scope leak. Signed-off-by: Steven Dake <sdake@redhat.com>
This commit is contained in:
parent
4449905ea5
commit
5672e8f4cf
@ -217,6 +217,10 @@ static int
|
||||
aes_ctr_init(EVP_CIPHER_CTX *ctx, const unsigned char *key,
|
||||
const unsigned char *iv, int enc) /* init key */
|
||||
{
|
||||
/*
|
||||
* variable "c" is leaked from this scope, but is later freed
|
||||
* in aes_ctr_cleanup
|
||||
*/
|
||||
aes_ctr_ctx *c = malloc(sizeof(*c));
|
||||
const EVP_CIPHER *aes_cipher;
|
||||
(void) enc;
|
||||
|
Loading…
Reference in New Issue
Block a user