assure that memory gets wiped before freeing