Skip to content

Commit 8764027

Browse files
committed
Markdown reader: add strictness annotations.
This fixes the memory leak noted in #8762. Closes #8762.
1 parent 1bc84bf commit 8764027

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Text/Pandoc/Readers/Markdown.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1908,10 +1908,10 @@ regLink :: PandocMonad m
19081908
-> F Inlines
19091909
-> MarkdownParser m (F Inlines)
19101910
regLink constructor lab = try $ do
1911-
(src, tit) <- source
1911+
(!src, !tit) <- source
19121912
rebase <- option False (True <$ guardEnabled Ext_rebase_relative_paths)
19131913
pos <- getPosition
1914-
let src' = if rebase then rebasePath pos src else src
1914+
let !src' = if rebase then rebasePath pos src else src
19151915
attr <- option nullAttr $
19161916
guardEnabled Ext_link_attributes >> attributes
19171917
return $ constructor attr src' tit <$> lab

0 commit comments

Comments
 (0)