Code

fix for segfault in rrd_cgi: caused by freeing a invalid address when printing an...
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 6 Jan 2009 14:54:41 +0000 (14:54 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 6 Jan 2009 14:54:41 +0000 (14:54 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3@1724 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_cgi.c

index cb9ab722f61926627490690f3a6e28751741fbcc..c28fd99078feb68b7c4ded32fe0013b45c63f76e 100644 (file)
@@ -374,6 +374,7 @@ static void calfree(
         if (calcpr) {
             free(calcpr);
         }
+        calcpr=NULL;
     }
 }