From e25c872e026ea18b45cefae06b66ab0936630bba Mon Sep 17 00:00:00 2001 From: oetiker Date: Tue, 6 Jan 2009 14:54:41 +0000 Subject: [PATCH] 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/program@1724 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_cgi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rrd_cgi.c b/src/rrd_cgi.c index cb9ab72..c28fd99 100644 --- a/src/rrd_cgi.c +++ b/src/rrd_cgi.c @@ -374,6 +374,7 @@ static void calfree( if (calcpr) { free(calcpr); } + calcpr=NULL; } } -- 2.30.2