aboutsummaryrefslogtreecommitdiff
path: root/src/engine.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine.c')
-rw-r--r--src/engine.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/engine.c b/src/engine.c
index 8ec688d..5a0c8fe 100644
--- a/src/engine.c
+++ b/src/engine.c
@@ -32,6 +32,7 @@ handle_include(char **buffer, key_match_t *match, directive_t *directive)
unsigned int size = fsize(f);
char *partial_content = fcontent(f, size);
+ fclose(f);
char *temp_buffer = strdup(*buffer);
@@ -43,6 +44,7 @@ handle_include(char **buffer, key_match_t *match, directive_t *directive)
partial_content,
temp_buffer + match->offset + match->length);
+ free(partial_content);
free(temp_buffer);
}