mirror of
https://github.com/systemd/systemd.git
synced 2026-07-13 19:10:58 +00:00
hibernate-resume-generator: fix minor memory leak on error path
This commit is contained in:
@@ -95,10 +95,13 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
if (arg_noresume) {
|
||||
log_notice("Found \"noresume\" on the kernel command line, quitting.");
|
||||
return EXIT_SUCCESS;
|
||||
r = 0;
|
||||
goto finish;
|
||||
}
|
||||
|
||||
r = process_resume();
|
||||
|
||||
finish:
|
||||
free(arg_resume_device);
|
||||
|
||||
return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user