Skip to content

Commit

Permalink
firecfg: fix missing free and formatting
Browse files Browse the repository at this point in the history
Changes:

* fix inconsistent indentation/braces
* add missing free
  • Loading branch information
kmk3 committed Jul 14, 2023
1 parent ac1ddcf commit cd33fd2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/firecfg/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,11 @@ static void set_file(const char *name, const char *firejail_exec) {
if (rv) {
fprintf(stderr, "Error: cannot create %s symbolic link\n", fname);
perror("symlink");
}
else
} else {
printf(" %s created\n", name);
}
else {
fprintf(stderr, "Warning: cannot create %s - already exists! Skipping...\n", fname);
}
} else {
fprintf(stderr, "Warning: cannot create %s - already exists! Skipping...\n", fname);
}

free(fname);
Expand Down Expand Up @@ -260,6 +259,7 @@ static void set_links_homedir(const char *homedir) {
free(dirname);
return;
}
free(dirname);

struct dirent *entry;
while ((entry = readdir(dir))) {
Expand Down

0 comments on commit cd33fd2

Please sign in to comment.