diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-04-09 13:41:38 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-04-09 13:41:38 +0200 |
commit | 0cade5118fbf6b7af6f34b53255e4e73b9578176 (patch) | |
tree | ef89b3b3ac9a9314848fcc1895cc8fc3900e4f07 /runtime | |
parent | 0550512b28049c391be424ad518ed0debb77089e (diff) | |
parent | bc471f1d9046bf75a2e27d593ce9b13e4094ffdc (diff) | |
download | rsyslog-0cade5118fbf6b7af6f34b53255e4e73b9578176.tar.gz rsyslog-0cade5118fbf6b7af6f34b53255e4e73b9578176.tar.bz2 rsyslog-0cade5118fbf6b7af6f34b53255e4e73b9578176.zip |
Merge branch 'v3-stable' into beta
Conflicts:
ChangeLog
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/msg.c | 2 |
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; } |