summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-03-14 12:17:27 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2011-03-14 12:17:27 +0100
commit00771a760bf2603276be906ad168ed50c90bf412 (patch)
tree67b694849288ef797404bdabf423691eaf597389 /runtime
parent85358a2df39f662d36f735b77be932f7995f3e75 (diff)
downloadrsyslog-00771a760bf2603276be906ad168ed50c90bf412.tar.gz
rsyslog-00771a760bf2603276be906ad168ed50c90bf412.tar.xz
rsyslog-00771a760bf2603276be906ad168ed50c90bf412.zip
fixing cosmetic memory leak in imdiag, imfile
This had no real consequences, as it happend exactly once during the runtime, so the OS cleaned up. However, it broke the valgrind testbench.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/cfsysline.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/cfsysline.c b/runtime/cfsysline.c
index 037e9f84..646ab39b 100644
--- a/runtime/cfsysline.c
+++ b/runtime/cfsysline.c
@@ -41,6 +41,7 @@
#include "obj.h"
#include "errmsg.h"
#include "srUtils.h"
+#include "unicode-helper.h"
/* static data */
@@ -511,6 +512,8 @@ static rsRetVal doGetWord(uchar **pp, rsRetVal (*pSetHdlr)(void*, uchar*), void
CHKiRet(cstrConvSzStrAndDestruct(pStrB, &pNewVal, 0));
pStrB = NULL;
+ DBGPRINTF("doGetWord: get newval '%s' (len %d), hdlr %p\n",
+ pNewVal, (int) ustrlen(pNewVal), pSetHdlr);
/* we got the word, now set it */
if(pSetHdlr == NULL) {
/* we should set value directly to var */