diff options
author | Michael Brown <mcb30@etherboot.org> | 2009-02-17 01:45:12 +0000 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2009-02-17 01:45:12 +0000 |
commit | 14eafc5b8de58c4495087cddfefe89e03ccda70c (patch) | |
tree | 9538cfb2b84050d3416b1f100a6e29356cb3a95c /src/core | |
parent | 8904cd55f128941d53d9a8beef71fb32a920a92d (diff) | |
download | ipxe-14eafc5b8de58c4495087cddfefe89e03ccda70c.tar.gz |
[comboot] Fix reference counting on replacement images
When chaining COMBOOT images, the old images now get freed correctly.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/image.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/image.c b/src/core/image.c index 741b05478..277d09a92 100644 --- a/src/core/image.c +++ b/src/core/image.c @@ -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 ); |