1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 00:33:59 +03:00

In fact, free the document first.

This commit is contained in:
Rob Rix 2015-11-24 13:53:42 -05:00
parent 86bf87b6a8
commit 13bc8afef6

View File

@ -44,8 +44,8 @@ main = do
source <- newCString ""
ts_document_set_input_string document source
ts_document_parse document
free source
ts_document_free document
free source
putStrLn $ "cSizeOf " ++ show (cSizeOf document)
parseModuleFile :: FilePath -> IO (ParseResult HsModule)