summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7cd70f0)
raw | patch | inline | side by side (parent: 7cd70f0)
author | Sebastian Harl <sh@tokkee.org> | |
Sat, 20 Dec 2008 13:33:48 +0000 (14:33 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Sat, 20 Dec 2008 13:33:48 +0000 (14:33 +0100) |
The patch now correctly applies to the latest version of rrdtool. Use
rrd_free2() instead of rrd_free() to not leak memory.
rrd_free2() instead of rrd_free() to not leak memory.
debian/changelog | patch | blob | history | |
debian/patches/bts428778-floating-point-exception | patch | blob | history |
diff --git a/debian/changelog b/debian/changelog
index e9e99e1e6e2de8299f93c7d611aa24276102b323..bec6892f0658e133822fc35f6e63035e7c88f4d3 100644 (file)
--- a/debian/changelog
+++ b/debian/changelog
rrdtool (1.3.5-1) unstable; urgency=low
* New upstream release.
+ * debian/patches:
+ - Updated bts428778-floating-point-exception to apply to the latest
+ version of rrdtool; use rrd_free2() instead of rrd_free() to not leak
+ memory.
- -- Sebastian Harl <sh@tokkee.org> Sat, 20 Dec 2008 14:31:25 +0100
+ -- Sebastian Harl <sh@tokkee.org> Sat, 20 Dec 2008 14:32:12 +0100
rrdtool (1.3.1-4) unstable; urgency=high
diff --git a/debian/patches/bts428778-floating-point-exception b/debian/patches/bts428778-floating-point-exception
index e03890b8bb55ac8d1383e4a1a1a088522ebf4dc8..cefb3ddbc77e115804c1cd9a040b9b0f33575d82 100644 (file)
+ if (rrd->rra_def[i].pdp_cnt == 0)
+ {
+ rrd_set_error("Invalid step: must be greater than 0.");
-+ rrd_free(rrd);
-+ fclose(rrd_file);
++ rrd_free2(rrd);
++ close(rrd_file);
+ return(-1);
+ }
/* startup missing pdp count */