Hi!
Pushed with following changes:
static void cleanup(void)
{
+ free(pointer_vec);
TEST_CLEANUP;
}
@@ -102,7 +103,7 @@ static int fork_test(void)
addr = mmap(NULL, 1 * GB, PROT_READ | PROT_WRITE,
MAP_PRIVATE | MAP_ANONYMOUS, 0, 0);
if (addr == MAP_FAILED) {
- pointer_vec[i] = 0;
+ pointer_vec[i] = NULL;
fails++;
/*
* EXTENT is "16*1024+10", if fails count exceeds 10,
Thanks.
--
Cyril Hrubis
[email protected]
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list