libfreerdp-core: cleanup memory management of secondary orders