aboutsummaryrefslogtreecommitdiff
path: root/src/engine.c
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-07-29 16:04:49 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2025-07-29 16:04:49 +0530
commita137054cb54d5458149ff993b657b533bf3d7dd1 (patch)
treec8144d967d706f93e255ff397c0adb539aae3891 /src/engine.c
parent45ac3392a1818077b88130574cc9a8b82c19c691 (diff)
template,engine: fix memory leak on engine_ingest()
Diffstat (limited to 'src/engine.c')
-rw-r--r--src/engine.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine.c b/src/engine.c
index 6584525..f2c18b6 100644
--- a/src/engine.c
+++ b/src/engine.c
@@ -78,7 +78,8 @@ handle_eachdo(char **buffer, key_match_t *match, directive_t *directive)
{
eachdo_operands_t *operands = directive->operands;
- engine_ingest(&operands->content);
+ list_t *content_headers = engine_ingest(&operands->content);
+ list_delete(content_headers);
list_t *directives = lex(operands->content);
#ifdef DEBUG