diff options
author | 2023-07-01 08:37:07 -0300 | |
---|---|---|
committer | 2023-08-04 17:25:20 -0300 | |
commit | ff1ba4d4b666386dece4728e62d78bff55eb983a (patch) | |
tree | ea7e9af979dac4dafc703992236eeb42af01b9ce /src/firecfg | |
parent | mpv.profile: add new XDG_STATE_HOME path (diff) | |
download | firejail-ff1ba4d4b666386dece4728e62d78bff55eb983a.tar.gz firejail-ff1ba4d4b666386dece4728e62d78bff55eb983a.tar.zst firejail-ff1ba4d4b666386dece4728e62d78bff55eb983a.zip |
firecfg: fix missing free and formatting
Changes:
* fix inconsistent indentation/braces
* add missing free
Diffstat (limited to 'src/firecfg')
-rw-r--r-- | src/firecfg/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/firecfg/main.c b/src/firecfg/main.c index 4ec81c5b3..90cea6d52 100644 --- a/src/firecfg/main.c +++ b/src/firecfg/main.c | |||
@@ -165,12 +165,11 @@ static void set_file(const char *name, const char *firejail_exec) { | |||
165 | if (rv) { | 165 | if (rv) { |
166 | fprintf(stderr, "Error: cannot create %s symbolic link\n", fname); | 166 | fprintf(stderr, "Error: cannot create %s symbolic link\n", fname); |
167 | perror("symlink"); | 167 | perror("symlink"); |
168 | } | 168 | } else { |
169 | else | ||
170 | printf(" %s created\n", name); | 169 | printf(" %s created\n", name); |
171 | } | 170 | } |
172 | else { | 171 | } else { |
173 | fprintf(stderr, "Warning: cannot create %s - already exists! Skipping...\n", fname); | 172 | fprintf(stderr, "Warning: cannot create %s - already exists! Skipping...\n", fname); |
174 | } | 173 | } |
175 | 174 | ||
176 | free(fname); | 175 | free(fname); |
@@ -260,6 +259,7 @@ static void set_links_homedir(const char *homedir) { | |||
260 | free(dirname); | 259 | free(dirname); |
261 | return; | 260 | return; |
262 | } | 261 | } |
262 | free(dirname); | ||
263 | 263 | ||
264 | struct dirent *entry; | 264 | struct dirent *entry; |
265 | while ((entry = readdir(dir))) { | 265 | while ((entry = readdir(dir))) { |