summaryrefslogtreecommitdiff
path: root/src/mapcat.c
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2016-12-20 10:54:44 +0100
committerPaweł Redman <pawel.redman@gmail.com>2016-12-20 10:54:44 +0100
commit28aafa709ffa40e26b4cec71171b46b05f6e28aa (patch)
tree6d4f96e4d549fe1257c0e9471227d0ac1c49ef03 /src/mapcat.c
parente68c00d7e00a330be5ca6cf249ae3476a06bfa2f (diff)
Fix an opened file leak.
Diffstat (limited to 'src/mapcat.c')
-rw-r--r--src/mapcat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mapcat.c b/src/mapcat.c
index d9bff86..0039608 100644
--- a/src/mapcat.c
+++ b/src/mapcat.c
@@ -413,6 +413,7 @@ int map_read(map_t *map, const char *path)
rv = 0;
out:
vstr_free(&token);
+ lexer_close(&lexer);
if (rv)
map_free(map);