Check malloc return value in PDB