Freed the memory used in Open Set