projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix for segfault in rrd_cgi: caused by freeing a invalid address when printing an...
[rrdtool.git]
/
src
/
rrd_cgi.c
diff --git
a/src/rrd_cgi.c
b/src/rrd_cgi.c
index
b535541
..
13b7d06
100644
(file)
--- a/
src/rrd_cgi.c
+++ b/
src/rrd_cgi.c
@@
-374,6
+374,7
@@
static void calfree(
if (calcpr) {
free(calcpr);
}
+ calcpr = NULL;
}
}
@@
-953,7
+954,6
@@
char *drawgraph(
DS_NAM_SIZE) * sizeof(char));
sprintf(err, "[ERROR: %s]", rrd_get_error());
rrd_clear_error();
- calfree();
return err;
}
}