1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 01:47:01 +03:00

Free the document at the end too I guess.

This commit is contained in:
Rob Rix 2015-11-24 13:53:35 -05:00
parent 7ab0b76abf
commit 86bf87b6a8

View File

@ -45,6 +45,7 @@ main = do
ts_document_set_input_string document source
ts_document_parse document
free source
ts_document_free document
putStrLn $ "cSizeOf " ++ show (cSizeOf document)
parseModuleFile :: FilePath -> IO (ParseResult HsModule)