From 173e96852970c7fc2b3b872c584a26109ea0165d Mon Sep 17 00:00:00 2001 From: oetiker Date: Mon, 4 Feb 2008 22:16:14 +0000 Subject: [PATCH] this should help with the memory leak git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1277 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_update.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rrd_update.c b/src/rrd_update.c index b3cc86c..01e756d 100644 --- a/src/rrd_update.c +++ b/src/rrd_update.c @@ -1963,7 +1963,7 @@ static int write_RRA_row( rrd->cdp_prep[cdp_idx].scratch[CDP_scratch_idx].u_val, rrd_file->pos, rrd->rra_def[rra_idx].cf_nam); #endif - if (pcdp_summary != NULL) { + if (*pcdp_summary != NULL) { iv.u_val = rrd->cdp_prep[cdp_idx].scratch[CDP_scratch_idx].u_val; /* append info to the return hash */ *pcdp_summary = info_push(*pcdp_summary, -- 2.30.2