mirror of
https://github.com/github/semantic.git
synced 2024-11-28 01:47:01 +03:00
In fact, free the document first.
This commit is contained in:
parent
86bf87b6a8
commit
13bc8afef6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user