Commit 32a55f5c authored by Job Vranish's avatar Job Vranish
Browse files

fixed bug in allocator test where memory wasn't being memset after malloc

parent 73962c9e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -60,7 +60,9 @@ void test_KineticAllocator_FreeAllPDUs_should_free_full_list_of_PDUs(void)

    // Allocate some PDUs and list items to hold them
    for (int i = 0; i < count; i++) {
        list[i] = (KineticListItem*)malloc(sizeof(KineticListItem));
        KineticListItem * listItem = malloc(sizeof(KineticListItem));
        memset(listItem, 0x00, sizeof(*listItem));
        list[i] = listItem;
        LOGF("ALLOCATED item[%d]: 0x%0llX", i, (long long)list[i]);
    }