Fix memory leaks.
Free hastable after use.
Free componets split after use.
Remove unsued error handling which fixes a memory leak.
Free error after use and remove unused error handling which
fixes mem leak.
Free list after use, fixes mem leak.