free entry in error case
This commit is contained in:
@@ -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,
|
DBG1(DBG_PTS, "loading bios measurements '%s' failed: %s", file,
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
|
free_bios_entry(entry);
|
||||||
close(fd);
|
close(fd);
|
||||||
return FALSE;
|
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",
|
DBG1(DBG_PTS, "loading ima measurements '%s' failed: %s",
|
||||||
file, strerror(errno));
|
file, strerror(errno));
|
||||||
|
free_ima_entry(entry);
|
||||||
close(fd);
|
close(fd);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user