Cleanup of memory where possible.

Signed-off-by: Michel <info@1st-setup.nl>