mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 21:11:03 +03:00
[comboot] Fix reference counting on replacement images
When chaining COMBOOT images, the old images now get freed correctly.
This commit is contained in:
@@ -275,8 +275,7 @@ int image_exec ( struct image *image ) {
|
||||
/* Pick up replacement image before we drop the original
|
||||
* image's temporary reference.
|
||||
*/
|
||||
if ( ( replacement = image->replacement ) != NULL )
|
||||
image_get ( replacement );
|
||||
replacement = image->replacement;
|
||||
|
||||
/* Drop temporary reference to the original image */
|
||||
image_put ( image );
|
||||
|
||||
Reference in New Issue
Block a user