Skip to content

Commit

Permalink
ProcessCSR_ex: add back missing XFREE, cleanup comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
philljj committed Oct 21, 2024
1 parent d9556a1 commit de51203
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -13629,10 +13629,13 @@ static int ProcessCSR_ex(WOLFSSL* ssl, byte* input, word32* inOutIdx,

*inOutIdx += status_length;

/* FreeOcspResponse frees status and single only if
* single->isDynamic is set. */
FreeOcspResponse(response);

#ifdef WOLFSSL_SMALL_STACK
/* FreeOcspResponse frees status and single. */
XFREE(status, ssl->heap, DYNAMIC_TYPE_OCSP_STATUS);
XFREE(single, ssl->heap, DYNAMIC_TYPE_OCSP_ENTRY);
XFREE(response, ssl->heap, DYNAMIC_TYPE_OCSP_REQUEST);
#endif

Expand Down

0 comments on commit de51203

Please sign in to comment.