diff options
author | Michael Biebl <biebl@debian.org> | 2008-03-29 12:14:30 +0100 |
---|---|---|
committer | Michael Biebl <biebl@debian.org> | 2008-03-29 12:14:30 +0100 |
commit | 60ca71394b49d283841f91facefadb2d43de4313 (patch) | |
tree | af8b1a5dcfa0031a1d54ce318145a81e6f6e5c01 /msg.c | |
parent | 1ff3d60958bd7f477cf3dfaf8b20a4637109c18f (diff) | |
download | rsyslog-60ca71394b49d283841f91facefadb2d43de4313.tar.gz |
Imported Debian patch 1.19.2-1debian/1.19.2-1
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**"; } |