[comboot] Fix reference counting on replacement images
[people/lynusvaz/gpxe.git] / src / arch / i386 / image / comboot.c
index 3ca9d28..e045264 100644 (file)
@@ -191,6 +191,7 @@ static int comboot_exec ( struct image *image ) {
                DBGC ( image, "COMBOOT %p: exited to run kernel %p\n",
                       image, comboot_replacement_image );
                image->replacement = comboot_replacement_image;
+               comboot_replacement_image = NULL;
                image_autoload ( image->replacement );
                break;