summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4b1f805)
raw | patch | inline | side by side (parent: 4b1f805)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 11 Aug 2009 14:00:57 +0000 (14:00 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 11 Aug 2009 14:00:57 +0000 (14:00 +0000) |
src/rrd_restore.c | patch | blob | history |
diff --git a/src/rrd_restore.c b/src/rrd_restore.c
index 4cbc37adc45ebc08de59ab2fb80822055d2c7cfd..46a79b5a59e04d1c8510159a16d7fc3d16a3dac5 100644 (file)
--- a/src/rrd_restore.c
+++ b/src/rrd_restore.c
}
errno = 0;
temp = strtod((char *)text,NULL);
- xmlFree(text);
if (errno>0){
rrd_set_error("ling %d: get_xml_double from '%s' %s",
xmlTextReaderGetParserLineNumber(reader),
text,rrd_strerror(errno));
+ xmlFree(text);
return -1;
}
+ xmlFree(text);
*value = temp;
return 0;
}