nochmal der gleiche fehler, i_free ist zu pingelig :-)

This commit is contained in:
Enno Rehling 2005-04-30 13:51:25 +00:00
parent 4855b6de4a
commit f685f770f0
2 changed files with 10 additions and 12 deletions

View File

@ -867,9 +867,7 @@ cr_output_unit(FILE * F, const region * r,
if (show!=u->items) { if (show!=u->items) {
/* free the temporary items */ /* free the temporary items */
while (show) { while (show) {
item * ishow = show; i_free(i_remove(&show, show));
show = show->next;
i_free(ishow);
} }
} }

View File

@ -2832,7 +2832,7 @@ reports(void)
if (f->no != MONSTER_FACTION) { if (f->no != MONSTER_FACTION) {
int error = write_reports(f, ltime); int error = write_reports(f, ltime);
if (error) retval = error; if (error) retval = error;
if (!nosh && f->email && BAT) { if (f->email && BAT) {
sprintf(buf, "%s/%s.sh", reportpath(), factionid(f)); sprintf(buf, "%s/%s.sh", reportpath(), factionid(f));
shfp = fopen(buf, "w"); shfp = fopen(buf, "w");
fprintf(shfp,"#!/bin/sh\n\nPATH=%s\n\n",MailitPath()); fprintf(shfp,"#!/bin/sh\n\nPATH=%s\n\n",MailitPath());