fix use after free in crm_node