aboutsummaryrefslogtreecommitdiffstats
path: root/src/fsec-print
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2018-08-28 08:46:37 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2018-08-28 08:46:37 -0400
commit74b564d1c9511d85c46e1d263eb94825de4a1157 (patch)
treef1068faa3cbf503eb5bf62e0ed7a89c46324050e /src/fsec-print
parentapparmor: disable exec from home by default (diff)
downloadfirejail-74b564d1c9511d85c46e1d263eb94825de4a1157.tar.gz
firejail-74b564d1c9511d85c46e1d263eb94825de4a1157.tar.zst
firejail-74b564d1c9511d85c46e1d263eb94825de4a1157.zip
memory leaks
Diffstat (limited to 'src/fsec-print')
-rw-r--r--src/fsec-print/main.c3
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;
76errexit: 76errexit:
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