c++ Realloc() doest not working : i have this code 
	
    Perro **obj = NULL;

	obj = (Perro**)malloc(10*sizeof(Perro*));


	for (int i = 0; i < 10; i++)
	{
		obj[i] = new Perrito((char*)"d",i);
	}

	realloc(obj,12*sizeof(Perro*));
	

	for (int i = 9; i < 12; i++)
	{
		obj[i] = new Perrito((char*)"d",i);
	}
	
	for (int i = 0; i < 12; i++)
	{
		Perrito *p;
		p = (Perrito*)obj[i];
		cout << p->getEdad() << endl;
	}
why when i'm reading my object a see a memori dumpd ( segmentation fault )
when i comend the line of realloc and reduce the last for length item it works normaly but a need to ude realloc for increase my polifirmist object length please help mee thanks! 