free entry in error case

This commit is contained in:
Andreas Steffen 2012-10-07 14:08:49 +02:00
parent cd198f48f2
commit 570402217c
1 changed files with 2 additions and 0 deletions

View File

@ -291,6 +291,7 @@ static bool load_bios_measurements(char *file, linked_list_t *list,
DBG1(DBG_PTS, "loading bios measurements '%s' failed: %s", file,
strerror(errno));
free_bios_entry(entry);
close(fd);
return FALSE;
}
@ -377,6 +378,7 @@ static bool load_runtime_measurements(char *file, linked_list_t *list,
DBG1(DBG_PTS, "loading ima measurements '%s' failed: %s",
file, strerror(errno));
free_ima_entry(entry);
close(fd);
return FALSE;
}