[Gluster-devel] Memory Leak

Vikas Gorur vikas at zresearch.com
Mon Mar 9 04:38:58 UTC 2009


2009/3/8 Gordan Bobic <gordan at bobich.net>:
> I've been looking through the source code, trying to track down that big
> memory leak. Can somebody tell me where the node calloc() on line 1713 in
> y.tab.c (2.0.0rc2) gets free()-ed? I can see that node gets assigned to
> tree, and then in section_end, there is tree = NULL. Am I missing the
> cleanup happening somewhere else?

It isn't free'd, but it cannot be the source of the 'big' memory leak.
y.tab.c is for the parsing of the spec file, which happens only once,
and the calloc's are fairly small.

Vikas
-- 
Engineer - Z Research
http://gluster.com/





More information about the Gluster-devel mailing list