2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-09-02 07:15:18 +00:00

Merge r1379: Fix leaking file descriptors on included files.

Nominated-by: Steve Beattie <sbeattie@ubuntu.com>
Acked-By: Marc Deslauriers <marc.deslauriers@canonical.com>
This commit is contained in:
Steve Beattie
2010-07-13 16:31:57 -07:00

View File

@@ -231,6 +231,7 @@ LT_EQUAL <=
} }
<<EOF>> { <<EOF>> {
fclose(yyin);
pop_include_stack(); pop_include_stack();
yypop_buffer_state(); yypop_buffer_state();
if ( !YY_CURRENT_BUFFER ) yyterminate(); if ( !YY_CURRENT_BUFFER ) yyterminate();