X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Foracle.c;h=38f08f2b91b6a8e7842b3f46770e7e788c9c6f74;hb=fc0ff427d748c12348bc6225e96f9cf615c77bce;hp=bf6aef58a4a5d50643c9dfa1371776421afe1085;hpb=849f5394cce97a76da080f6cd9e5194b7f4ee0f0;p=collectd.git diff --git a/src/oracle.c b/src/oracle.c index bf6aef58..38f08f2b 100644 --- a/src/oracle.c +++ b/src/oracle.c @@ -75,10 +75,10 @@ typedef struct o_database_s o_database_t; /* * Global variables */ -static udb_query_t **queries = NULL; -static size_t queries_num = 0; -static o_database_t **databases = NULL; -static size_t databases_num = 0; +static udb_query_t **queries; +static size_t queries_num; +static o_database_t **databases; +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;