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:
David Garske
2019-06-19 11:23:37 -07:00
parent dd9dd6306e
commit 7bde02b3e7

View File

@ -184,6 +184,7 @@
header->next = NULL;
if (ourMemList.tail == NULL) {
ourMemList.head = header;
header->prev = NULL;
}
else {
ourMemList.tail->next = header;