summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c639797)
raw | patch | inline | side by side (parent: c639797)
author | Tomas Doran <tomas.doran@timgroup.com> | |
Tue, 26 Feb 2013 12:43:21 +0000 (12:43 +0000) | ||
committer | Florian Forster <octo@collectd.org> | |
Wed, 27 Feb 2013 07:20:39 +0000 (08:20 +0100) |
Signed-off-by: Florian Forster <octo@collectd.org>
src/mysql.c | patch | blob | history |
diff --git a/src/mysql.c b/src/mysql.c
index 69df7c708acce1c9f19a034cb2eb094590d46a02..6f9efe356c923d6b7a390b0d8974059a6c5d6a3b 100644 (file)
--- a/src/mysql.c
+++ b/src/mysql.c
{
ERROR ("mysql plugin: Failed to get master statistics: "
"`%s' did not return any rows.", query);
+ mysql_free_result (res);
return (-1);
}
{
ERROR ("mysql plugin: Failed to get master statistics: "
"`%s' returned less than two columns.", query);
+ mysql_free_result (res);
return (-1);
}
{
ERROR ("mysql plugin: Failed to get slave statistics: "
"`%s' did not return any rows.", query);
+ mysql_free_result (res);
return (-1);
}
{
ERROR ("mysql plugin: Failed to get slave statistics: "
"`%s' returned less than 33 columns.", query);
+ mysql_free_result (res);
return (-1);
}