[PATCH v2 01/23] interconnect: fix mem leak when freeing nodes