diff --git a/host/limine-deploy.c b/host/limine-deploy.c index f874280c..8346892f 100644 --- a/host/limine-deploy.c +++ b/host/limine-deploy.c @@ -554,8 +554,9 @@ int main(int argc, char *argv[]) { return EXIT_FAILURE; } - if (!device_init()) - goto cleanup; + if (!device_init()) { + goto undeploy_mode_cleanup; + } if (undeploy_mode) { if (undeploy_file == NULL) {