Hi,

I just want to report on memory leak of RRDTool fetch.
I ran valgrind on my test program and found there is a memory leak in 
RRDTool every time the fetch function get executed to retrieve data from 
RRD file.

Thanks

Luuwen
----------------------------------------------------------------------------------------------------------
[EMAIL PROTECTED]:/usr/local/sf/lib/perl/5.8.3/SF# rrdtool -V
RRDtool 1.2.25  Copyright 1997-2007 by Tobias Oetiker <[EMAIL PROTECTED]>
               Compiled Dec  3 2007 16:21:47

[EMAIL PROTECTED]:~/TimeSeries/utest# valgrind -v --leak-check=full ./run_rrd

==2478== 4 bytes in 1 blocks are definitely lost in loss record 1 of 1
==2478==    at 0x4018823: malloc (m_replacemalloc/vg_replace_malloc.c:149)
==2478==    by 0x402CBAE: rrd_fetch_fn (in /usr/lib/librrd.so.2.0.11)
==2478==    by 0x402CAF7: rrd_fetch_r (in /usr/lib/librrd.so.2.0.11)
==2478==    by 0x402CA73: rrd_fetch (in /usr/lib/librrd.so.2.0.11)
==2478==    by 0x8049C9F: getCommonTimeSeriesData (time_series.c:405)
==2478==    by 0x8049E36: getTimeSeriesData (time_series.c:457)
==2478==    by 0x8049287: main (run_rrd.c:199)

_______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Reply via email to