From: oetiker Date: Mon, 4 Feb 2008 22:16:14 +0000 (+0000) Subject: this should help with the memory leak X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=173e96852970c7fc2b3b872c584a26109ea0165d;p=rrdtool.git this should help with the memory leak git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1277 a5681a0c-68f1-0310-ab6d-d61299d08faa --- 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,