diff options
author | 2017-08-15 10:11:08 -0400 | |
---|---|---|
committer | 2017-08-15 10:11:08 -0400 | |
commit | 2158d8d04e0d88c61b0d7de9f7abc0e54139de75 (patch) | |
tree | f9d10bbe13719f8650e6655fa4b262c1b2578efa /src/firejail | |
parent | fix #1462 (diff) | |
download | firejail-2158d8d04e0d88c61b0d7de9f7abc0e54139de75.tar.gz firejail-2158d8d04e0d88c61b0d7de9f7abc0e54139de75.tar.zst firejail-2158d8d04e0d88c61b0d7de9f7abc0e54139de75.zip |
compile cleanup
Diffstat (limited to 'src/firejail')
-rw-r--r-- | src/firejail/fs_bin.c | 4 | ||||
-rw-r--r-- | src/firejail/join.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/firejail/fs_bin.c b/src/firejail/fs_bin.c index 7b259bf03..f70bd095b 100644 --- a/src/firejail/fs_bin.c +++ b/src/firejail/fs_bin.c | |||
@@ -152,8 +152,8 @@ void fs_private_bin_list(void) { | |||
152 | duplicate(ptr, fplist); | 152 | duplicate(ptr, fplist); |
153 | free(dlist); | 153 | free(dlist); |
154 | fs_logger_print(); | 154 | fs_logger_print(); |
155 | if (fplist) | 155 | if (fplist) |
156 | fclose(fplist); | 156 | fclose(fplist); |
157 | 157 | ||
158 | // mount-bind | 158 | // mount-bind |
159 | int i = 0; | 159 | int i = 0; |
diff --git a/src/firejail/join.c b/src/firejail/join.c index 84bd80364..dd7b2e9bb 100644 --- a/src/firejail/join.c +++ b/src/firejail/join.c | |||
@@ -51,8 +51,10 @@ static void extract_x11_display(pid_t pid) { | |||
51 | 51 | ||
52 | if (1 != fscanf(fp, "%d", &display)) { | 52 | if (1 != fscanf(fp, "%d", &display)) { |
53 | fprintf(stderr, "Error: cannot read X11 display file\n"); | 53 | fprintf(stderr, "Error: cannot read X11 display file\n"); |
54 | fclose(fp); | ||
54 | return; | 55 | return; |
55 | } | 56 | } |
57 | fclose(fp); | ||
56 | 58 | ||
57 | // check display range | 59 | // check display range |
58 | if (display < X11_DISPLAY_START || display > X11_DISPLAY_END) { | 60 | if (display < X11_DISPLAY_START || display > X11_DISPLAY_END) { |