diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-03-21 08:13:36 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-03-21 08:13:36 +0100 |
commit | fcd2e036bc7c44f1ac638b43e3f161e7a23776a6 (patch) | |
tree | 070e81ba6bd759fba7575feb115423e9209aef49 /plugins | |
parent | 1262b90373d6a5f10eeb3fe7fa2c52908d4f9094 (diff) | |
download | rsyslog-fcd2e036bc7c44f1ac638b43e3f161e7a23776a6.tar.gz rsyslog-fcd2e036bc7c44f1ac638b43e3f161e7a23776a6.tar.xz rsyslog-fcd2e036bc7c44f1ac638b43e3f161e7a23776a6.zip |
omhiredis: some cleanup
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/omhiredis/omhiredis.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/omhiredis/omhiredis.c b/plugins/omhiredis/omhiredis.c index 3a23778b..5577b7eb 100644 --- a/plugins/omhiredis/omhiredis.c +++ b/plugins/omhiredis/omhiredis.c @@ -92,7 +92,6 @@ BEGINfreeInstance CODESTARTfreeInstance closeHiredis(pData); free(pData->server); - free(pData->port); free(pData->tplName); ENDfreeInstance @@ -133,10 +132,11 @@ rsRetVal writeHiredis(uchar *message, instanceData *pData) CHKiRet(initHiredis(pData, 0)); } - reply = redisCommand(pData->conn, message); + reply = redisCommand(pData->conn, (char*)message); if (!reply->integer) { - perror ("redisCommand()"); - dbgprintf("omhiredis: redisCommand error\n"); + char errStr[1024]; + DBGPRINTF("omhiredis: redisCommand error: %s", + rs_strerror_r(errno, errStr, sizeof(errStr))); freeReplyObject(reply); ABORT_FINALIZE(RS_RET_ERR); } else { |