Bug fix: Double free if a boot image has no extents. Coverity CID 12598.
This commit is contained in:
parent
fc448e09c9
commit
2b6071b445
@ -4860,8 +4860,10 @@ int iso_impsysa_reduce_next_above(IsoImage *image, uint32_t block,
|
|||||||
if (ret > 0 && section_count > 0)
|
if (ret > 0 && section_count > 0)
|
||||||
if (block != sections[0].block)
|
if (block != sections[0].block)
|
||||||
iso_impsysa_reduce_na(block, next_above, sections[0].block);
|
iso_impsysa_reduce_na(block, next_above, sections[0].block);
|
||||||
if (sections != NULL)
|
if (sections != NULL) {
|
||||||
free(sections);
|
free(sections);
|
||||||
|
sections = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
iso_impsysa_reduce_na(block, next_above, sai->image_size);
|
iso_impsysa_reduce_na(block, next_above, sai->image_size);
|
||||||
|
Loading…
Reference in New Issue
Block a user