summaryrefslogtreecommitdiffstats
path: root/plugins/imtcp
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-06-04 09:37:10 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-06-04 09:37:10 +0200
commit99e97dadf1d03c9db33d49e91b26ceb28a39ed1a (patch)
tree6c4d24be3eb4bfd37f2fdd4770be0abeb865791e /plugins/imtcp
parent67d4f3c8f39f22a61ab9097163081d1a31e8d5a9 (diff)
downloadrsyslog-99e97dadf1d03c9db33d49e91b26ceb28a39ed1a.tar.gz
rsyslog-99e97dadf1d03c9db33d49e91b26ceb28a39ed1a.tar.xz
rsyslog-99e97dadf1d03c9db33d49e91b26ceb28a39ed1a.zip
bugfix: removed some memory leaks in TLS code
Diffstat (limited to 'plugins/imtcp')
-rw-r--r--plugins/imtcp/imtcp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/imtcp/imtcp.c b/plugins/imtcp/imtcp.c
index d8363151..d50d80e9 100644
--- a/plugins/imtcp/imtcp.c
+++ b/plugins/imtcp/imtcp.c
@@ -147,6 +147,7 @@ setPermittedPeer(void __attribute__((unused)) *pVal, uchar *pszID)
{
DEFiRet;
CHKiRet(net.AddPermittedPeer(&pPermPeersRoot, pszID));
+ free(pszID); /* no longer needed, but we need to free as of interface def */
finalize_it:
RETiRet;
}