From: oetiker Date: Tue, 6 Jan 2009 14:54:41 +0000 (+0000) Subject: fix for segfault in rrd_cgi: caused by freeing a invalid address when printing an... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1a1f6d52ae171b7af404951c85dfc7086208206a;p=rrdtool-all.git fix for segfault in rrd_cgi: caused by freeing a invalid address when printing an error message. git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3@1724 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_cgi.c b/program/src/rrd_cgi.c index cb9ab722..c28fd990 100644 --- a/program/src/rrd_cgi.c +++ b/program/src/rrd_cgi.c @@ -374,6 +374,7 @@ static void calfree( if (calcpr) { free(calcpr); } + calcpr=NULL; } }