X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Foracle.c;h=38f08f2b91b6a8e7842b3f46770e7e788c9c6f74;hb=fc0ff427d748c12348bc6225e96f9cf615c77bce;hp=9c4b929dd31b252f631fc7fe302b0a6d1dec44fe;hpb=a396da422740caf336a6d594515e8d80de6f440a;p=collectd.git diff --git a/src/oracle.c b/src/oracle.c index 9c4b929d..38f08f2b 100644 --- a/src/oracle.c +++ b/src/oracle.c @@ -76,9 +76,9 @@ typedef struct o_database_s o_database_t; * Global variables */ static udb_query_t **queries; -static size_t queries_num = 0; +static size_t queries_num; static o_database_t **databases; -static size_t databases_num = 0; +static size_t databases_num; OCIEnv *oci_env = NULL; OCIError *oci_error = NULL; @@ -583,6 +583,8 @@ static int o_read_database_query(o_database_t *db, /* {{{ */ } } /* }}} while (42) */ + udb_query_finish_result (q, prep_area); + /* DEBUG ("oracle plugin: o_read_database_query: This statement succeeded: * %s", q->statement); */ FREE_ALL;