bootspec: ensure memory free in one error path

This commit is contained in:
Lennart Poettering
2025-06-24 00:49:46 +09:00
committed by Yu Watanabe
parent 04fd0b9ff0
commit 1bd9a3c916
+2 -2
View File
@@ -836,9 +836,9 @@ static int pe_load_headers_and_sections(
IMAGE_SECTION_HEADER **ret_sections,
PeHeader **ret_pe_header) {
_cleanup_free_ IMAGE_SECTION_HEADER *sections = NULL;
_cleanup_free_ IMAGE_DOS_HEADER *dos_header = NULL;
IMAGE_SECTION_HEADER *sections;
PeHeader *pe_header;
_cleanup_free_ PeHeader *pe_header = NULL;
int r;
assert(fd >= 0);