Fix a gcc warning by not using the DM_debug_info string as the format string, also free the string after printing.