~arges/ubuntu/quantal/rsyslog/fix-lp1059592

« back to all changes in this revision

Viewing changes to outchannel.c

Tags: 5.7.3-1
* New upstream release.
* Upload to unstable.
* debian/patches/02-typo_fix_equation_sign.patch
  - Removed, merged upstream.
* debian/patches/03-atomic_operations.patch
  - Removed, merged upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
#include "stringbuf.h"
39
39
#include "outchannel.h"
40
40
#include "dirty.h"
 
41
#include "debug.h"
41
42
 
42
43
static struct outchannel *ochRoot = NULL;       /* the root of the outchannel list */
43
44
static struct outchannel *ochLast = NULL;       /* points to the last element of the outchannel list */
212
213
                return NULL;
213
214
        
214
215
        pOch->iLenName = strlen(pName);
215
 
        pOch->pszName = (char*) malloc(sizeof(char) * (pOch->iLenName + 1));
 
216
        pOch->pszName = (char*) MALLOC(sizeof(char) * (pOch->iLenName + 1));
216
217
        if(pOch->pszName == NULL) {
217
218
                dbgprintf("ochAddLine could not alloc memory for outchannel name!");
218
219
                pOch->iLenName = 0;