summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-04-09 13:41:38 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-04-09 13:41:38 +0200
commit0cade5118fbf6b7af6f34b53255e4e73b9578176 (patch)
treeef89b3b3ac9a9314848fcc1895cc8fc3900e4f07 /runtime
parent0550512b28049c391be424ad518ed0debb77089e (diff)
parentbc471f1d9046bf75a2e27d593ce9b13e4094ffdc (diff)
downloadrsyslog-0cade5118fbf6b7af6f34b53255e4e73b9578176.tar.gz
rsyslog-0cade5118fbf6b7af6f34b53255e4e73b9578176.tar.xz
rsyslog-0cade5118fbf6b7af6f34b53255e4e73b9578176.zip
Merge branch 'v3-stable' into beta
Conflicts: ChangeLog
Diffstat (limited to 'runtime')
-rw-r--r--runtime/msg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/msg.c b/runtime/msg.c
index b995ac53..2b58eb88 100644
--- a/runtime/msg.c
+++ b/runtime/msg.c
@@ -1489,6 +1489,8 @@ void MsgAssignHOSTNAME(msg_t *pMsg, char *pBuf)
{
assert(pMsg != NULL);
assert(pBuf != NULL);
+ if(pMsg->pszHOSTNAME != NULL)
+ free(pMsg->pszHOSTNAME);
pMsg->iLenHOSTNAME = strlen(pBuf);
pMsg->pszHOSTNAME = (uchar*) pBuf;
}