Use the correct call to free memory in windows osd_close [smf]