1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00

Merge branch 'master' of ssh://sources.redhat.com/git/glibc

Conflicts:
	ChangeLog
This commit is contained in:
Ulrich Drepper
2010-03-25 19:45:20 -07:00
4 changed files with 25 additions and 2 deletions

View File

@ -51,6 +51,7 @@ main (void)
for (i=0; i<100; ++i)
{
printf("round %li\n", i);
save_state = malloc_get_state ();
if (save_state == NULL)
{
@ -64,13 +65,18 @@ main (void)
merror ("realloc (i*4) failed.");
free (save_state);
}
puts("done");
p1 = realloc (p1, 40);
puts("after realloc");
free (p2);
puts("after free 1");
p2 = malloc (10);
puts("after malloc");
if (p2 == NULL)
merror ("malloc (10) failed.");
free (p1);
puts("after free 2");
return errors != 0;
}