Fixed OS_FREE

Memory allocation now functional (but not rigorously tested)