[PATCH 2/4] node_device_conf: Refactoring functions in order to remove VIR_FREE