futility/updater_archive.c
/* Releases all resources allocated by given manifest object. */
Releases all resources allocated by given manifest object.
Releases all resources allocated by given manifest object .
void delete_manifest(struct manifest *manifest)
{
	int i;
	assert(manifest);
	for (i = 0; i < manifest->num; i++) {
		struct model_config *model = &manifest->models[i];
		free(model->name);
		free(model->signature_id);
		free(model->image);
		free(model->ec_image);
		free(model->pd_image);
		free(model->patches.rootkey);
		free(model->patches.vblock_a);
		free(model->patches.vblock_b);
	}
	free(manifest->models);
	free(manifest);
}
void delete_manifest ( struct manifest * manifest ) { int i ; assert ( manifest ) ; for ( i = 0 ; i < manifest -> num ; i ++ ) { struct model_config * model = & manifest -> models [ i ] ; free ( model -> name ) ; free ( model -> signature_id ) ; free ( model -> image ) ; free ( model -> ec_image ) ; free ( model -> pd_image ) ; free ( model -> patches . rootkey ) ; free ( model -> patches . vblock_a ) ; free ( model -> patches . vblock_b ) ; } free ( manifest -> models ) ; free ( manifest ) ; }
Releases all resources allocated by given manifest object.
Releases all resources allocated by given manifest object .