char *p1 = NULL, p2 = NULL;

try {
p1 = new char[16];
p2 = new char[16];
}
catch(){
delete [] p2;
delete [] p1;
}