Re: Glib hashtable memory leak



2008/4/30 Ovidiu Gheorghies <ogheorghies gmail com>:
> The following program appears to leak memory according to mtrace:

glib has it's own allocator and this is confusing mtrace.

Try setting:

export G_DEBUG=gc-friendly
export G_SLICE=always-malloc

before running your program.

John


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]