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.tokkee.org/?a=commitdiff_plain;h=5020650f27837f1c55092b1b20342000db125aed;p=rrdtool-all.git this should help with the memory leak git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1277 a5681a0c-68f1-0310-ab6d-d61299d08faa --- 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,