mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
Fix for track memory case where the "prev" wasn't getting initialized for the first malloc. Caused issue on last free with fsantize because pointers are not zero'd by default.
This commit is contained in:
@ -184,6 +184,7 @@
|
||||
header->next = NULL;
|
||||
if (ourMemList.tail == NULL) {
|
||||
ourMemList.head = header;
|
||||
header->prev = NULL;
|
||||
}
|
||||
else {
|
||||
ourMemList.tail->next = header;
|
||||
|
Reference in New Issue
Block a user