A class designer’s stupid mistake
#endif /* __BADCLASS_H__ */
pointer = new int[1024]; // 4kb memory
bad::~bad() {} // we don't clean up
// we leak 1000 * 4kb memory.
Not so much we can do here -- since we usually get the object libraries only, we have no way of telling that the class programmer made the mistake.