From 5020650f27837f1c55092b1b20342000db125aed 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@1277 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_update.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/src/rrd_update.c b/program/src/rrd_update.c index b3cc86c8..01e756d1 100644 --- a/program/src/rrd_update.c +++ b/program/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