summaryrefslogtreecommitdiffstats
path: root/plugins/omelasticsearch/omelasticsearch.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-07-02 11:48:52 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2013-07-02 11:48:52 +0200
commit80f88242982c9c6ad6ce8628fc5b94ea74051cf4 (patch)
treecebbe797aa98b23fb55d256b791befa959df874b /plugins/omelasticsearch/omelasticsearch.c
parent50fc430ccd4305645007327c31026fb4e12fc6f5 (diff)
downloadrsyslog-80f88242982c9c6ad6ce8628fc5b94ea74051cf4.tar.gz
rsyslog-80f88242982c9c6ad6ce8628fc5b94ea74051cf4.tar.bz2
rsyslog-80f88242982c9c6ad6ce8628fc5b94ea74051cf4.zip
bugfix: double-free in omelasticsearch
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=461 Thanks to Marius Ionescu for providing a detailled bug report
Diffstat (limited to 'plugins/omelasticsearch/omelasticsearch.c')
-rw-r--r--plugins/omelasticsearch/omelasticsearch.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/plugins/omelasticsearch/omelasticsearch.c b/plugins/omelasticsearch/omelasticsearch.c
index 33e58c1a..57abefdd 100644
--- a/plugins/omelasticsearch/omelasticsearch.c
+++ b/plugins/omelasticsearch/omelasticsearch.c
@@ -483,7 +483,6 @@ writeDataError(instanceData *pData, cJSON **pReplyRoot, uchar *reqmsg)
DBGPRINTF("omelasticsearch: error %d writing error file, write returns %lld\n",
errno, (long long) wrRet);
}
- free(rendered);
cJSON_Delete(errRoot);
*pReplyRoot = NULL; /* tell caller not to delete once again! */