diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-07-04 18:54:55 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-07-04 18:54:55 +0200 |
commit | ebdcba5a6a5c9a20a529b62273a7ad852a793f09 (patch) | |
tree | 7e9c7f5133fa3bc7e86cfe51f546109ffd440ddc | |
parent | 7a17ad6aef66c097ea2d0d6aec3a898db0f2a55b (diff) | |
download | rsyslog-ebdcba5a6a5c9a20a529b62273a7ad852a793f09.tar.gz rsyslog-ebdcba5a6a5c9a20a529b62273a7ad852a793f09.tar.bz2 rsyslog-ebdcba5a6a5c9a20a529b62273a7ad852a793f09.zip |
minor code reduction
-rw-r--r-- | plugins/omelasticsearch/omelasticsearch.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/omelasticsearch/omelasticsearch.c b/plugins/omelasticsearch/omelasticsearch.c index 57abefdd..cb96fb6b 100644 --- a/plugins/omelasticsearch/omelasticsearch.c +++ b/plugins/omelasticsearch/omelasticsearch.c @@ -487,8 +487,7 @@ writeDataError(instanceData *pData, cJSON **pReplyRoot, uchar *reqmsg) *pReplyRoot = NULL; /* tell caller not to delete once again! */ finalize_it: - if(rendered != NULL) - free(rendered); + free(rendered); RETiRet; } |