summaryrefslogtreecommitdiff
path: root/bpf_parser.y
diff options
context:
space:
mode:
Diffstat (limited to 'bpf_parser.y')
-rw-r--r--bpf_parser.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/bpf_parser.y b/bpf_parser.y
index 26ec125..0959f3d 100644
--- a/bpf_parser.y
+++ b/bpf_parser.y
@@ -812,7 +812,9 @@ int compile_filter(char *file, int verbose, int bypass, int format,
free(labels_k[i]);
}
- fclose(yyin);
+ if (yyin != stdin)
+ fclose(yyin);
+
if (invoke_cpp)
unlink(tmp_file);