From 4b757e8984744515b7981c606597d68be274ff9f Mon Sep 17 00:00:00 2001 From: Michael Meckelein Date: Tue, 28 Aug 2007 10:50:59 +0000 Subject: applied patches for release 1.19.2, update documentation --- msg.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'msg.c') diff --git a/msg.c b/msg.c index 3ba92b10..30fe7d4e 100644 --- a/msg.c +++ b/msg.c @@ -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**"; } -- cgit