memset(key_iv, 0, MAXKEY+MAXIV);
static int write_suspend_image(void){	int error;	init_header();	if ((error = data_write()))		goto FreeData;	if ((error = write_pagedir()))		goto FreePagedir;	if ((error = close_swap()))		goto FreePagedir; Done:	return error; FreePagedir:	free_pagedir_entries(); FreeData:	data_free();	goto Done;}