summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 08fb835)
raw | patch | inline | side by side (parent: 08fb835)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 25 May 2004 20:57:58 +0000 (20:57 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 25 May 2004 20:57:58 +0000 (20:57 +0000) |
Problem could manifest under extreme resource limits. Not tested.
-- Mike Slifcak
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@266 a5681a0c-68f1-0310-ab6d-d61299d08faa
-- Mike Slifcak
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@266 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_xport.c | patch | blob | history |
diff --git a/src/rrd_xport.c b/src/rrd_xport.c
index 488c24c3edbd057e005e2bf8c640544da6d9a549..c12b783bd07dce361f5b7f9045149a44db8052a0 100644 (file)
--- a/src/rrd_xport.c
+++ b/src/rrd_xport.c
if ((legend_list[j] = malloc(sizeof(char) * (FMT_LEG_LEN+5)))==NULL) {
free(srcptr_list);
free(ref_list);
+ free(*data); *data = NULL;
+ while (--j > -1) free(legend_list[j]);
free(legend_list);
- rrd_set_error("malloc xprint legend entry");
+ rrd_set_error("malloc xport legend entry");
return(-1);
}