From 4b1d1d4b8d2aa833222a213b2c63161b0ab09c7e Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sat, 20 Dec 2008 14:33:48 +0100 Subject: [PATCH] debian/patches: Updated bts428778-floating-point-exception. The patch now correctly applies to the latest version of rrdtool. Use rrd_free2() instead of rrd_free() to not leak memory. --- debian/changelog | 6 +++++- debian/patches/bts428778-floating-point-exception | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index e9e99e1..bec6892 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,12 @@ 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 Sat, 20 Dec 2008 14:31:25 +0100 + -- Sebastian Harl 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 e03890b..cefb3dd 100644 --- a/debian/patches/bts428778-floating-point-exception +++ b/debian/patches/bts428778-floating-point-exception @@ -10,8 +10,8 @@ diff a/src/rrd_create.c b/src/rrd_create.c + 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 */ -- 2.30.2