summaryrefslogtreecommitdiffstats
path: root/plugins/ommysql/ommysql.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-10-31 17:52:43 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-10-31 17:52:43 +0100
commit78a67ffbbab4aea3cc9642f445d0a9bed7e48fa7 (patch)
treea250a210e90249195511fab59d86a464d1a82364 /plugins/ommysql/ommysql.c
parent0732e088e985482c7f897c8fd571587fa808f6d0 (diff)
downloadrsyslog-78a67ffbbab4aea3cc9642f445d0a9bed7e48fa7.tar.gz
rsyslog-78a67ffbbab4aea3cc9642f445d0a9bed7e48fa7.tar.bz2
rsyslog-78a67ffbbab4aea3cc9642f445d0a9bed7e48fa7.zip
bugfix: ommysql lost configfile/section parameters after first close
This means that when a connection was broken, it was probably re-instantiated with different parameters than configured.
Diffstat (limited to 'plugins/ommysql/ommysql.c')
-rw-r--r--plugins/ommysql/ommysql.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/plugins/ommysql/ommysql.c b/plugins/ommysql/ommysql.c
index 2dfa29de..fb4f1e27 100644
--- a/plugins/ommysql/ommysql.c
+++ b/plugins/ommysql/ommysql.c
@@ -123,14 +123,6 @@ static void closeMySQL(instanceData *pData)
mysql_close(pData->f_hmysql);
pData->f_hmysql = NULL;
}
- if(pData->f_configfile!=NULL){
- free(pData->f_configfile);
- pData->f_configfile=NULL;
- }
- if(pData->f_configsection!=NULL){
- free(pData->f_configsection);
- pData->f_configsection=NULL;
- }
}
BEGINfreeInstance