mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-10-17 21:23:47 +00:00
fix memory leak produced by 'corosync -v'
Signed-off-by: zouyu <hopkings2005@gmail.com> Reviewed-by: Jan Friesse <jfriesse@redhat.com>
This commit is contained in:
parent
f6d6a9b0a0
commit
cc80c8567d
@ -1193,6 +1193,7 @@ int main (int argc, char **argv, char **envp)
|
||||
case 'v':
|
||||
printf ("Corosync Cluster Engine, version '%s'\n", VERSION);
|
||||
printf ("Copyright (c) 2006-2009 Red Hat, Inc.\n");
|
||||
logsys_system_fini();
|
||||
return EXIT_SUCCESS;
|
||||
|
||||
break;
|
||||
@ -1203,6 +1204,7 @@ int main (int argc, char **argv, char **envp)
|
||||
" -p : Does nothing. \n"\
|
||||
" -r : Set round robin realtime scheduling \n"\
|
||||
" -v : Display version and SVN revision of Corosync and exit.\n");
|
||||
logsys_system_fini();
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user