diff options
Diffstat (limited to 'src/image/script.c')
-rw-r--r-- | src/image/script.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/image/script.c b/src/image/script.c index fe7228851..2d2427463 100644 --- a/src/image/script.c +++ b/src/image/script.c @@ -43,10 +43,8 @@ static int script_exec ( struct image *image ) { int rc; /* Temporarily de-register image, so that a "boot" command - * doesn't throw us into an execution loop. Hold a reference - * to avoid the image's being freed. + * doesn't throw us into an execution loop. */ - image_get ( image ); unregister_image ( image ); while ( offset < image->len ) { @@ -80,7 +78,6 @@ static int script_exec ( struct image *image ) { done: /* Re-register image and return */ register_image ( image ); - image_put ( image ); return rc; } |