err_set_debug(): Prevent possible recursion on malloc failure