fix memory leak in swaymsg

master
Tony Crisci 7 years ago
parent f35575f71d
commit a4c1270ef0

@ -308,9 +308,11 @@ int main(int argc, char **argv) {
}
free(cmdtype);
char *command = strdup("");
char *command = NULL;
if (optind < argc) {
command = join_args(argv + optind, argc - optind);
} else {
command = strdup("");
}
int ret = 0;

Loading…
Cancel
Save