src/ssl.c: fix whitespace and heap reference in FreeSession() (re 569c066fab).

This commit is contained in:
Daniel Pouzzner
2021-12-24 01:16:32 -06:00
parent 9d49884274
commit 54e9076c45

View File

@@ -23322,7 +23322,6 @@ WOLFSSL_SESSION* GetSessionRef(WOLFSSL* ssl)
WOLFSSL_MSG("Error allocating client session reference");
return NULL;
}
XMEMCPY(ref, session, refSize);
ref->type = WOLFSSL_SESSION_TYPE_REF;
@@ -23527,7 +23526,7 @@ void FreeSession(WOLFSSL_SESSION* session)
#ifdef HAVE_SESSION_TICKET
if (session->ticketLenAlloc > 0) {
XFREE(session->ticket, heap, DYNAMIC_TYPE_SESSION_TICK);
XFREE(session->ticket, session->heap, DYNAMIC_TYPE_SESSION_TICK);
}
#endif