summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9a5fdb3)
raw | patch | inline | side by side (parent: 9a5fdb3)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 28 Aug 2008 04:13:39 +0000 (04:13 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 28 Aug 2008 04:13:39 +0000 (04:13 +0000) |
src/rrd_tool.c | patch | blob | history |
diff --git a/src/rrd_tool.c b/src/rrd_tool.c
index 80bdb6e70c399a662b9ef1c7f7aaae7d022453f6..d08d7de74c7d5d6d9a27f073f10ac2461986d804 100644 (file)
--- a/src/rrd_tool.c
+++ b/src/rrd_tool.c
exit(1);
}
}
- return *aLinePtr = linebuf[0] ? linebuf : 0;
+ if (linebuf[0]){
+ return *aLinePtr = linebuf;
+ }
+ free(linebuf);
+ return *aLinePtr = 0;
}
int main(