Memory leak fix in DG.
Deallocation type fix in Space.
Vectorizer memory leak fix.