summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-09-20 08:02:51 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-09-20 08:02:51 +0200
commit0b7d60132026fea49383eac57fa732f974934371 (patch)
tree426e75b5eea4762c34f4aab308de78063e6647dc
parent911e2ec374d9911804eebf4765911654610384a0 (diff)
downloadrsyslog-0b7d60132026fea49383eac57fa732f974934371.tar.gz
rsyslog-0b7d60132026fea49383eac57fa732f974934371.tar.bz2
rsyslog-0b7d60132026fea49383eac57fa732f974934371.zip
bugfix: small memory leak in imdiag
This does not have any practical problems associated with it, EXCECPT that it caused almost all valgrind testbench tests to fail.
-rw-r--r--plugins/imdiag/imdiag.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/imdiag/imdiag.c b/plugins/imdiag/imdiag.c
index 6ea615a1..09742537 100644
--- a/plugins/imdiag/imdiag.c
+++ b/plugins/imdiag/imdiag.c
@@ -390,6 +390,7 @@ finalize_it:
if(pOurTcpsrv != NULL)
tcpsrv.Destruct(&pOurTcpsrv);
}
+ free(pNewVal);
RETiRet;
}