summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dd669da)
raw | patch | inline | side by side (parent: dd669da)
author | Sebastian Harl <sh@teamix.net> | |
Wed, 30 Jan 2013 20:13:16 +0000 (21:13 +0100) | ||
committer | Sebastian Harl <sh@teamix.net> | |
Wed, 30 Jan 2013 20:13:16 +0000 (21:13 +0100) |
debian/changelog | patch | blob | history | |
debian/patches/00list | patch | blob | history | |
debian/patches/postgresql_writer_memleak.dpatch | [deleted file] | patch | blob | history |
diff --git a/debian/changelog b/debian/changelog
index 454b699f9b904e748ef29bb9ca437a705c311786..682c1afac6bcd778da2c14b7eaa69e3f5e74e1a8 100644 (file)
--- a/debian/changelog
+++ b/debian/changelog
collectd (5.2.1-1) UNRELEASED; urgency=low
* New upstream release.
+ * debian/patches:
+ - Removed postgresql_writer_memleak.dpatch -- applied upstream.
-- Sebastian Harl <tokkee@debian.org> Wed, 30 Jan 2013 20:54:27 +0100
diff --git a/debian/patches/00list b/debian/patches/00list
index c3bdb36ac03223c8f9055d27ec36f8bafcc14ad9..23aacf62e043c084fffcce668440b01881337668 100644 (file)
--- a/debian/patches/00list
+++ b/debian/patches/00list
collection_conf_path.dpatch
myplugin_includes.dpatch
bts559801_plugin_find_fix.dpatch
-postgresql_writer_memleak.dpatch
diff --git a/debian/patches/postgresql_writer_memleak.dpatch b/debian/patches/postgresql_writer_memleak.dpatch
+++ /dev/null
@@ -1,40 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## postgresql_writer_memleak.dpatch by Sebastian Harl <sh@tokkee.org>
-##
-## DP: postgresql plugin: Fixed a memory leak occurring on every write.
-
-@DPATCH@
-
-diff a/src/postgresql.c b/src/postgresql.c
---- a/src/postgresql.c
-+++ b/src/postgresql.c
-@@ -900,10 +900,10 @@ static int c_psql_write (const data_set_t *ds, const value_list_t *vl,
-
- if ((PGRES_COMMAND_OK != PQresultStatus (res))
- && (PGRES_TUPLES_OK != PQresultStatus (res))) {
-+ PQclear (res);
-+
- if ((CONNECTION_OK != PQstatus (db->conn))
- && (0 == c_psql_check_connection (db))) {
-- PQclear (res);
--
- /* try again */
- res = PQexecParams (db->conn, writer->statement,
- STATIC_ARRAY_SIZE (params), NULL,
-@@ -912,6 +912,7 @@ static int c_psql_write (const data_set_t *ds, const value_list_t *vl,
-
- if ((PGRES_COMMAND_OK == PQresultStatus (res))
- || (PGRES_TUPLES_OK == PQresultStatus (res))) {
-+ PQclear (res);
- success = 1;
- continue;
- }
-@@ -932,6 +933,8 @@ static int c_psql_write (const data_set_t *ds, const value_list_t *vl,
- pthread_mutex_unlock (&db->db_lock);
- return -1;
- }
-+
-+ PQclear (res);
- success = 1;
- }
-