diff options
author | Michael Meckelein <mmeckelein@hq.adiscon.com> | 2007-08-28 10:50:59 +0000 |
---|---|---|
committer | Michael Meckelein <mmeckelein@hq.adiscon.com> | 2007-08-28 10:50:59 +0000 |
commit | 4b757e8984744515b7981c606597d68be274ff9f (patch) | |
tree | 10fbf8b1899e729717b80263ecc3cb5ca1a400b7 /msg.c | |
parent | 54b0b3ab14799966d2845a6524fa62e9cebe5c67 (diff) | |
download | rsyslog-4b757e8984744515b7981c606597d68be274ff9f.tar.gz rsyslog-4b757e8984744515b7981c606597d68be274ff9f.tar.xz rsyslog-4b757e8984744515b7981c606597d68be274ff9f.zip |
applied patches for release 1.19.2, update documentationv1-19-2
Diffstat (limited to 'msg.c')
-rw-r--r-- | msg.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1615,12 +1615,10 @@ char *MsgGetProp(msg_t *pMsg, struct templateEntry *pTpe, if(*(pRes + iLn - 1) == '\n') { /* we have a LF! */ /* check if we need to obtain a private copy */ - if(pbMustBeFreed == 0) { + if(*pbMustBeFreed == 0) { /* ok, original copy, need a private one */ pB = malloc((iLn + 1) * sizeof(char)); if(pB == NULL) { - if(*pbMustBeFreed == 1) - free(pRes); *pbMustBeFreed = 0; return "**OUT OF MEMORY**"; } |