summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7abf844)
raw | patch | inline | side by side (parent: 7abf844)
author | Sebastian Harl <sh@tokkee.org> | |
Wed, 17 Sep 2008 08:30:30 +0000 (10:30 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Wed, 17 Sep 2008 08:30:30 +0000 (10:30 +0200) |
Trivial upstream patch to fix a possible memory leak.
debian/changelog | patch | blob | history | |
debian/patches/00list | patch | blob | history | |
debian/patches/collectd_memleak.dpatch | [new file with mode: 0755] | patch | blob |
diff --git a/debian/changelog b/debian/changelog
index 3481a96a4cf7fbd81916b23d5c33ae9d30ccf0a1..afc5acf5b068c5fa46e8838958a98dd77f44643d 100644 (file)
--- a/debian/changelog
+++ b/debian/changelog
loading the ipmi plugin caused by that work around (Closes: #494665).
* Added debian/patches/memory_libstatgrab.dpatch - trivial upstream patch to
fix a typo in the libstatgrab code of the memory plugin.
+ * Added debian/patches/collectd_memleak.dpatch - trivial upstream patch to
+ fix a possible memory leak.
- -- Sebastian Harl <sh@tokkee.org> Wed, 17 Sep 2008 10:19:47 +0200
+ -- Sebastian Harl <sh@tokkee.org> Wed, 17 Sep 2008 10:28:36 +0200
collectd (4.4.2-1) unstable; urgency=low
diff --git a/debian/patches/00list b/debian/patches/00list
index bc01ecdd43e05821757cf5ee8e8a92c60b473dc5..d2a82d98d7dcb5e4ef9db1b389fbde6470e3d70f 100644 (file)
--- a/debian/patches/00list
+++ b/debian/patches/00list
collection_conf_path.dpatch
myplugin_strcpy.dpatch
memory_libstatgrab.dpatch
+collectd_memleak.dpatch
diff --git a/debian/patches/collectd_memleak.dpatch b/debian/patches/collectd_memleak.dpatch
--- /dev/null
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## collectd_memleak.dpatch by Peter Holik <holik@it-technology.at>
+##
+## DP: Free allocated memory before returning in an error condition.
+## DP: (This is upstream Git commit 111a5eb7b68da0478b16de31dff422a213a03799)
+
+@DPATCH@
+
+diff a/src/utils_threshold.c b/src/utils_threshold.c
+--- a/src/utils_threshold.c
++++ b/src/utils_threshold.c
+@@ -711,6 +711,7 @@ int ut_check_interesting (const char *name)
+ if (status != 0)
+ {
+ ERROR ("ut_check_interesting: parse_identifier failed.");
++ sfree (name_copy);
+ return (-1);
+ }
+