Revision 3300 src/template.c

View differences:

template.c
73 73
	if (!tmpl->name) {
74 74
		g_warning("wrong template format\n");
75 75
		template_free(tmpl);
76
		fclose(fp);
76 77
		return NULL;
77 78
	}
78 79

  
......
80 81
	if (!tmpl->value) {
81 82
		g_warning("cannot read template body\n");
82 83
		template_free(tmpl);
84
		fclose(fp);
83 85
		return NULL;
84 86
	}
85 87
	fclose(fp);

Also available in: Unified diff