[Geany-devel] Use of MIO in tagmanager

Matthew Brush mbrush at xxxxx
Thu Oct 13 07:33:47 UTC 2011


On 10/12/2011 10:43 PM, Lex Trotman wrote:
>
> In tagmanager/read.c line 322 mio_new_memory is called without a free
> function.  But I got lost in the multiple indirections trying to check
> if there is a default free function.
>
> Otherwise it looks like this buffer may not be freed?
>

It seems to get allocated via tm_source_file.c:210 and freed through 
tm_source_file.c:220.  bufferClose() is a macro for fileClose()  and 
mio_free() seems to be called there (read.c:357).


Cheers,
Matthew Brush



More information about the Devel mailing list