fixed all memory leaks in Salt.c except a very small one that probably resides in ReadMode.