diff options
author | netblue30 <netblue30@yahoo.com> | 2018-08-28 08:46:37 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2018-08-28 08:46:37 -0400 |
commit | 74b564d1c9511d85c46e1d263eb94825de4a1157 (patch) | |
tree | f1068faa3cbf503eb5bf62e0ed7a89c46324050e /src/fsec-print/main.c | |
parent | apparmor: disable exec from home by default (diff) | |
download | firejail-74b564d1c9511d85c46e1d263eb94825de4a1157.tar.gz firejail-74b564d1c9511d85c46e1d263eb94825de4a1157.tar.zst firejail-74b564d1c9511d85c46e1d263eb94825de4a1157.zip |
memory leaks
Diffstat (limited to 'src/fsec-print/main.c')
-rw-r--r-- | src/fsec-print/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fsec-print/main.c b/src/fsec-print/main.c index 94c60687f..5a1e34080 100644 --- a/src/fsec-print/main.c +++ b/src/fsec-print/main.c | |||
@@ -74,7 +74,8 @@ printf("\n"); | |||
74 | close(fd); | 74 | close(fd); |
75 | return 0; | 75 | return 0; |
76 | errexit: | 76 | errexit: |
77 | close(fd); | 77 | if (fd != -1) |
78 | close(fd); | ||
78 | fprintf(stderr, "Error: cannot read %s\n", fname); | 79 | fprintf(stderr, "Error: cannot read %s\n", fname); |
79 | exit(1); | 80 | exit(1); |
80 | 81 | ||