From: Pierre Chifflier <chifflier@xxxxxx> Change from procedure to function in mysql schema adds the need to free MySQL result after request. Signed-off-by: Pierre Chifflier <chifflier@xxxxxx> Signed-off-by: Eric leblond <eric@xxxxxx> --- :100644 100644 800d79d... fd650bf... M output/mysql/ulogd_output_MYSQL.c output/mysql/ulogd_output_MYSQL.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/output/mysql/ulogd_output_MYSQL.c b/output/mysql/ulogd_output_MYSQL.c index 800d79d..fd650bf 100644 --- a/output/mysql/ulogd_output_MYSQL.c +++ b/output/mysql/ulogd_output_MYSQL.c @@ -231,6 +231,7 @@ static int execute_mysql(struct ulogd_pluginstance *upi, { struct mysql_instance *mi = (struct mysql_instance *) upi->private; int ret; + MYSQL_RES * result; ret = mysql_real_query(mi->dbh, stmt, len); if (ret) { @@ -238,6 +239,10 @@ static int execute_mysql(struct ulogd_pluginstance *upi, mysql_error(mi->dbh)); return -1; } + result = mysql_use_result(mi->dbh); + if (result) { + mysql_free_result(result); + } return 0; } -- 1.5.2.5 - To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html