orte_ras_orcm fix potential memory leaks and slot num check