tccpp: avoid double free with macro_ptr_allocated (after errors)