mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-04 05:04:41 +02:00
fix for infer memory leak report and for clang unused warning
This commit is contained in:
@@ -542,6 +542,8 @@ static RevokedCert *DupRevokedCertList(RevokedCert* in, void* heap)
|
||||
}
|
||||
current = current->next;
|
||||
}
|
||||
|
||||
(void)heap;
|
||||
return head;
|
||||
}
|
||||
|
||||
|
@@ -8857,6 +8857,8 @@ static int asn1_string_copy_to_buffer(WOLFSSL_ASN1_STRING* str, byte** buf,
|
||||
*len = str->length;
|
||||
XMEMCPY(*buf, str->data, str->length);
|
||||
}
|
||||
|
||||
(void)heap;
|
||||
return WOLFSSL_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -41290,6 +41292,7 @@ err:
|
||||
WOLFSSL_MSG("No output parameters set");
|
||||
WOLFSSL_LEAVE("wolfSSL_PEM_X509_INFO_read_bio", WOLFSSL_FAILURE);
|
||||
wolfSSL_sk_free(localSk);
|
||||
wolfSSL_X509_INFO_free(current);
|
||||
return NULL;
|
||||
}
|
||||
if (ret != WOLFSSL_SUCCESS) {
|
||||
|
Reference in New Issue
Block a user