Address memory leaks; address origin errors