FreeDosObject(type, ptr)
void FreeDosObject(ULONG, void *)
Frees an object allocated by
AllocDosObject(). Do NOT call for objects allocated in any other way.
Before V39, DOS_CLI objects will only have the
struct CommandLineInterface freed, not the strings it points to. This is fixed in V39 dos.library. Before V39, you can work around this bug by using FreeVec() on cli_SetName, cli_CommandFile, cli_CommandName, and cli_Prompt, and then setting them all to NULL. In V39 or above, do NOT use the workaround.