14 lines
230 B
Plaintext
14 lines
230 B
Plaintext
main()
|
|
{
|
|
local ptr1;
|
|
local ptr2;
|
|
name = "galloc";
|
|
|
|
ptr1 = galloc(1);
|
|
test_str(ptr1, heap + LOCATION_DATA, "");
|
|
free(ptr1);
|
|
ptr1 = galloc(1);
|
|
test_str(ptr1, heap + LOCATION_DATA, "alloc after free");
|
|
ptr2 = galloc(1);
|
|
}
|