Home
last modified time | relevance | path

Searched refs:CHKmalloc (Results 1 – 25 of 105) sorted by relevance

12345

/dports/sysutils/rsyslog8/rsyslog-8.2112.0/runtime/
H A Dlookup.c89 CHKmalloc(pThis = calloc(1, sizeof(lookup_ref_t))); in lookupNew()
90 CHKmalloc(t = calloc(1, sizeof(lookup_t))); in lookupNew()
470 CHKmalloc(pThis->table.arr = calloc(1, sizeof(lookup_array_tab_t))); in build_ArrayTable()
568 CHKmalloc(pThis->nomatch = ustrdup(stub_val)); in lookupBuildStubbedTable()
603 CHKmalloc(all_values = malloc(pThis->nmemb * sizeof(uchar*))); in lookupBuildTable_v1()
629 CHKmalloc(pThis->interned_vals[j++] = ustrdup(all_values[0])); in lookupBuildTable_v1()
634 CHKmalloc(pThis->interned_vals[j++] = ustrdup(all_values[i])); in lookupBuildTable_v1()
643 CHKmalloc(pThis->nomatch = (uchar*) strdup(nomatch_value)); in lookupBuildTable_v1()
726 CHKmalloc(newlu = calloc(1, sizeof(lookup_t))); in lookupReloadOrStub()
934 CHKmalloc(iobuf = malloc(sb.st_size)); in ATTR_NONNULL()
[all …]
H A Dnetstrms.c70 CHKmalloc(pThis->pDrvrName = (uchar*) strdup((char*)szDrvrName)); in DEFobjCurrIf()
160 CHKmalloc(pThis->pBaseDrvrName = (uchar*) strdup((char*) pszName)); in SetDrvrName()
195 CHKmalloc(pThis->pszDrvrAuthMode = (uchar*)strdup((char*)mode)); in SetDrvrAuthMode()
234 CHKmalloc(pThis->pszDrvrPermitExpiredCerts = (uchar*) strdup((char*)mode)); in SetDrvrPermitExpiredCerts()
246 CHKmalloc(pThis->pszDrvrCAFile = (uchar*) strdup((char*)mode)); in SetDrvrTlsCAFile()
258 CHKmalloc(pThis->pszDrvrKeyFile = (uchar*) strdup((char*)mode)); in SetDrvrTlsKeyFile()
270 CHKmalloc(pThis->pszDrvrCertFile = (uchar*) strdup((char*)mode)); in SetDrvrTlsCertFile()
285 CHKmalloc(pThis->gnutlsPriorityString = (uchar*)strdup((char*)iVal)); in SetDrvrGnutlsPriorityString()
H A Dperctile_stats.c293 CHKmalloc(pstat = calloc(1, sizeof(perctile_stat_t))); in perctile_observe()
321 CHKmalloc(hash_key = ustrdup(key)); in perctile_observe()
388 CHKmalloc(buf = malloc(pbkt->window_size*sizeof(ITEM))); in report_perctile_stats()
526 CHKmalloc(b = calloc(1, sizeof(perctile_bucket_t))); in perctile_newBucket()
532 CHKmalloc(b->name = ustrdup(name)); in perctile_newBucket()
534 CHKmalloc(b->delim = ustrdup(delim)); in perctile_newBucket()
536 CHKmalloc(b->delim = ustrdup(".")); in perctile_newBucket()
539 CHKmalloc(b->perctile_values = calloc(perctilesCount, sizeof(uint8_t))); in perctile_newBucket()
602 CHKmalloc(name = (uchar*)es_str2cstr(pvals[i].val.d.estr, NULL)); in perctile_processCnf()
604 CHKmalloc(delim = (uchar*)es_str2cstr(pvals[i].val.d.estr, NULL)); in perctile_processCnf()
[all …]
H A Dobjomsr.c69 CHKmalloc(pThis = calloc(1, sizeof(omodStringRequest_t))); in OMSRconstruct()
77 CHKmalloc(pThis->ppTplName = calloc(iNumEntries, sizeof(uchar*))); in OMSRconstruct()
80 CHKmalloc(pThis->piTplOpts = calloc(iNumEntries, sizeof(int))); in OMSRconstruct()
H A Dstatsobj.c164 CHKmalloc(pThis->origin = ustrdup(origin)); in setOrigin()
177 CHKmalloc(pThis->name = ustrdup(name)); in setName()
191 CHKmalloc(pThis->reporting_ns = ustrdup(ns)); in setReportingNamespace()
212 CHKmalloc(ctr = calloc(1, sizeof(ctr_t))); in addManagedCounter()
311 CHKmalloc(v = json_object_new_int64((int64_t) value)); in addCtrForReporting()
326 CHKmalloc(v = json_object_new_string((const char*) value)); in addContextForReporting()
362 CHKmalloc(root = json_object_new_object()); in getStatsLineCEE()
373 CHKmalloc(values = json_object_new_object()); in getStatsLineCEE()
586 CHKmalloc(stat = calloc(1, sizeof(struct sender_stats))); in statsRecordSender()
H A Dbatch.h123 CHKmalloc(pBatch->pElem = calloc((size_t)maxElem, sizeof(batch_obj_t))); in batchInit()
124 CHKmalloc(pBatch->eltState = calloc((size_t)maxElem, sizeof(batch_state_t))); in batchInit()
H A Ddynstats.c130CHKmalloc(metric_name_buff = malloc((name_len + DYNSTATS_MAX_BUCKET_NS_METRIC_LENGTH + 1) * sizeof… in dynstats_addBucketMetrics()
222 CHKmalloc(survivor_table = create_hashtable(htab_sz, hash_from_string, key_equals_string, in dynstats_rebuildSurvivorTable()
225 CHKmalloc(new_table = create_hashtable(htab_sz, hash_from_string, key_equals_string, no_op_free)); in dynstats_rebuildSurvivorTable()
321 CHKmalloc(b = calloc(1, sizeof(dynstats_bucket_t))); in dynstats_newBucket()
325 CHKmalloc(b->name = ustrdup(name)); in dynstats_newBucket()
390 CHKmalloc(name = (uchar*)es_str2cstr(pvals[i].val.d.estr, NULL)); in dynstats_processCnf()
485 CHKmalloc(*ctr = calloc(1, sizeof(dynstats_ctr_t))); in dynstats_createCtr()
486 CHKmalloc((*ctr)->metric = ustrdup(metric)); in dynstats_createCtr()
H A Djanitor.c46 CHKmalloc(etry = malloc(sizeof(struct janitorEtry))); in janitorAddEtry()
47 CHKmalloc(etry->id = strdup(id)); in janitorAddEtry()
H A Dnspoll.c69 CHKmalloc(pThis->pDrvrName = (uchar*) strdup((char*)szDrvrName)); in DEFobjCurrIf()
155 CHKmalloc(pThis->pBaseDrvrName = (uchar*) strdup((char*) pszName)); in SetDrvrName()
H A Dnssel.c74 CHKmalloc(pThis->pDrvrName = (uchar*) strdup((char*)szDrvrName)); in DEFobjCurrIf()
148 CHKmalloc(pThis->pBaseDrvrName = (uchar*) strdup((char*) pszName)); in SetDrvrName()
H A Dstrgen.c105 CHKmalloc(pThis = malloc(sizeof(strgenList_t))); in AddStrgenToList()
192 CHKmalloc(pThis->pName = ustrdup(name)); in ENDobjDestruct()
/dports/sysutils/rsyslog8/rsyslog-8.2112.0/plugins/mmsnmptrapd/
H A Dmmsnmptrapd.c300 CHKmalloc(node = malloc(sizeof(struct severMap_s))); in ATTR_NONNULL()
301 CHKmalloc(node->name = ustrdup(pszSev)); in ATTR_NONNULL()
341 CHKmalloc(pData->pszTagName = (uchar*) strdup("snmptrapd:"));
342 CHKmalloc(pData->pszTagID = (uchar*) strdup("snmptrapd/"));
346 CHKmalloc(pData->pszTagName = malloc(lenTag + 2));
350 CHKmalloc(pData->pszTagID = malloc(lenTag + 2));
/dports/sysutils/rsyslog8/rsyslog-8.2112.0/plugins/fmhttp/
H A Dfmhttp.c97 CHKmalloc(handle = curl_easy_init()); in ATTR_NONNULL()
112 CHKmalloc(ret->d.estr = es_newStrFromCStr(curlData->reply, curlData->replyLen)); in ATTR_NONNULL()
141 CHKmalloc(func->funcdata = calloc(1, sizeof(struct curl_funcData))); in initFunc_http_request()
/dports/sysutils/rsyslog8/rsyslog-8.2112.0/plugins/mmdblookup/
H A Dmmdblookup.c227 CHKmalloc(loadModConf->container = strdup(JSON_IPLOOKUP_NAME));
267 CHKmalloc(pData->fieldList.name = calloc(pData->fieldList.nmemb, sizeof(char *)));
268 CHKmalloc(pData->fieldList.varname = calloc(pData->fieldList.nmemb, sizeof(char *)));
287 CHKmalloc(pData->fieldList.name[j] = strdup(name));
292 CHKmalloc(pData->fieldList.varname[j] = strdup(vnamebuf));
403 CHKmalloc(memstream = open_memstream(&membuf, &memlen));
/dports/sysutils/rsyslog8/rsyslog-8.2112.0/plugins/omhdfs/
H A Domhdfs.c164 CHKmalloc(pFile = malloc(sizeof(file_t))); in fileObjConstruct()
215 CHKmalloc(pszWork = malloc(len)); in filePrepare()
481 CHKmalloc(pFile->name = cs.fileName);
482 CHKmalloc(keybuf = ustrdup(cs.fileName));
484 CHKmalloc(pFile->hdfsHost = strdup((cs.hdfsHost == NULL) ? "default" : (char*) cs.hdfsHost));
559 CHKmalloc(files = create_hashtable(20, hash_from_string, key_equals_string,
/dports/sysutils/rsyslog8/rsyslog-8.2112.0/contrib/mmkubernetes/
H A Dmmkubernetes.c337 CHKmalloc(dest->regexps = calloc(sizeof(regex_t), dest->nmemb)); in copy_annotationmatch()
477 CHKmalloc(tmpstr = es_newStr(size)); in array_to_rules()
485 CHKmalloc(*rules = es_str2cstr(tmpstr, NULL)); in array_to_rules()
512 CHKmalloc(*ctxln = ln_initCtx()); in set_lnctx()
824 CHKmalloc(buf = realloc(pWrkrData->curlRply, newlen)); in curlCB()
930 CHKmalloc(token = malloc((statbuf.st_size+1)*sizeof(char)));
1030 CHKmalloc(cache->mdHt = create_hashtable(100, hash_from_string, in cacheNew()
1032 CHKmalloc(cache->nsHt = create_hashtable(100, hash_from_string, in cacheNew()
1083 CHKmalloc(cache_entry = malloc(sizeof(struct cache_entry_s))); in cache_entry_new()
1510 CHKmalloc(pData->cache = cacheNew(pData));
[all …]
/dports/sysutils/rsyslog8/rsyslog-8.2112.0/contrib/fmhash/
H A Dfmhash.c287 CHKmalloc(hash_context = calloc(1, sizeof(hash_context_t))); in init_fmHash64()
306 CHKmalloc(hash_context = calloc(1, sizeof(hash_context_t))); in init_fmHash64mod()
324 CHKmalloc(hash_context = calloc(1, sizeof(hash_context_t))); in init_fmHash32()
343 CHKmalloc(hash_context = calloc(1, sizeof(hash_context_t))); in init_fmHash32mod()
/dports/sysutils/rsyslog8/rsyslog-8.2112.0/plugins/imudp/
H A Dimudp.c211 CHKmalloc(inst = malloc(sizeof(instanceConf_t))); in createInstance()
251 CHKmalloc(inst->pszBindPort = ustrdup((pNewVal == NULL || *pNewVal == '\0') in addInstance()
256 CHKmalloc(inst->pszBindAddr = ustrdup(cs.pszBindAddr)); in addInstance()
261 CHKmalloc(inst->pszBindDevice = strdup(cs.pszBindDevice)); in addInstance()
266 CHKmalloc(inst->pszBindRuleset = ustrdup(cs.pszBindRuleset)); in addInstance()
314 CHKmalloc(newlcnfinfo = (struct lstn_s*) calloc(1, sizeof(struct lstn_s))); in addListner()
809 CHKmalloc(udpEPollEvt = calloc(nLstn, sizeof(struct epoll_event))); in rcvMainLoop()
893 CHKmalloc(pollfds); in ATTR_NONNULL()
1138 CHKmalloc(loadModConf->pszSchedPolicy = ustrdup(cs.pszSchedPolicy));
1198 CHKmalloc(wrkrInfo[i].recvmsg_iov = malloc(runModConf->batchSize * sizeof(struct iovec)));
[all …]
/dports/sysutils/rsyslog8/rsyslog-8.2112.0/contrib/imhttp/
H A Dimhttp.c219 CHKmalloc(inst = calloc(1, sizeof(instanceConf_t))); in createInstance()
263 CHKmalloc(*name = strdup(param)); in processCivetwebOptions()
264 CHKmalloc(*paramval = strdup(val)); in processCivetwebOptions()
301 CHKmalloc(data = calloc(1, sizeof(struct conn_wrkr_s))); in init_thread()
319 CHKmalloc(data->pMsg = calloc(1, 1 + s_iMaxLine)); in init_thread()
361 CHKmalloc(json = json_object_new_object()); in msgAddMetadataFromHttpHeader()
364 CHKmalloc(jval); in msgAddMetadataFromHttpHeader()
395 CHKmalloc(json = json_object_new_object()); in msgAddMetadataFromHttpQueryParams()
406 CHKmalloc(jval); in msgAddMetadataFromHttpQueryParams()
1082 CHKmalloc(loadModConf->options = malloc(sizeof(struct option) *
[all …]
/dports/sysutils/rsyslog8/rsyslog-8.2112.0/plugins/imfile/
H A Dimfile.c763 CHKmalloc(act = calloc(sizeof(act_obj_t), 1)); in act_obj_add()
764 CHKmalloc(act->name = strdup(name)); in act_obj_add()
768 CHKmalloc(act->basename = strdup(basename)); in act_obj_add()
778 CHKmalloc(act->source_name = strdup(source)); in act_obj_add()
883 CHKmalloc(target = realpath(symlink, NULL)); in ATTR_NONNULL()
1195 CHKmalloc(instarr_new); in fs_node_add()
1211 CHKmalloc(newchld->name = ustrdup(name)); in fs_node_add()
1213 CHKmalloc(newchld->path = ustrdup(ourPath)); in fs_node_add()
1407 CHKmalloc(ceeMsg = malloc(ceeMsgSize)); in enqLine()
1715 CHKmalloc(inst = malloc(sizeof(instanceConf_t))); in createInstance()
[all …]
/dports/sysutils/rsyslog8/rsyslog-8.2112.0/plugins/imkafka/
H A Dimkafka.c284 CHKmalloc(inst = malloc(sizeof(instanceConf_t))); in createInstance()
523 CHKmalloc(*name = strdup(param)); in ATTR_NONNULL()
524 CHKmalloc(*paramval = strdup(val)); in ATTR_NONNULL()
563 CHKmalloc(inst->confParams = malloc(sizeof(struct kafka_params)*inst->nConfParams));
589 CHKmalloc(inst->brokers = strdup("localhost:9092"));
648 CHKmalloc(loadModConf->pszBindRuleset = ustrdup(cs.pszBindRuleset));
662 CHKmalloc(inst->pszBindRuleset = ustrdup(pModConf->pszBindRuleset));
/dports/sysutils/rsyslog8/rsyslog-8.2112.0/plugins/omlibdbi/
H A Domlibdbi.c575 CHKmalloc(pData->host = (uchar*) strdup((char*)cs.host));
577 CHKmalloc(pData->usrName = (uchar*) strdup((char*)cs.usrName));
579 CHKmalloc(pData->dbName = (uchar*) strdup((char*)cs.dbName));
581 CHKmalloc(pData->pwd = (uchar*) strdup((char*)cs.pwd));
583 CHKmalloc(loadModConf->dbiDrvrDir = (uchar*) strdup((char*)cs.dbiDrvrDir));
/dports/sysutils/rsyslog8/rsyslog-8.2112.0/plugins/mmjsonparse/
H A Dmmjsonparse.c121 CHKmalloc(pData->container = (uchar*)strdup("!"));
122 CHKmalloc(pData->cookie = strdup(CONST_CEE_COOKIE));
315 CHKmalloc(pData->container = (uchar*) strdup("!"));
/dports/sysutils/rsyslog8/rsyslog-8.2112.0/plugins/ommongodb/
H A Dommongodb.c664 CHKmalloc(pData->json_tokener = json_tokener_new());
668 CHKmalloc(pData->db = (char*)strdup("syslog"));
670 CHKmalloc(pData->collection_name = (char*)strdup("log"));
680 CHKmalloc(pData->server = (char*)strdup("127.0.0.1"));
682 CHKmalloc(pData->port = (char*)strdup("27017"));
703 CHKmalloc(pData->uristr = malloc(uri_len + 1));
/dports/sysutils/rsyslog8/rsyslog-8.2112.0/contrib/mmdarwin/
H A Dmmdarwin.c626 CHKmalloc(loadModConf->container = strdup(JSON_DEFAULT_CONTAINER));
672 CHKmalloc(pData->pCertitudeKey = strdup(vnamebuf));
743 CHKmalloc(pData->fieldList.name = calloc(pData->fieldList.nmemb, sizeof(char *)));
744 CHKmalloc(pData->fieldList.varname = calloc(pData->fieldList.nmemb, sizeof(char *)));
769 CHKmalloc(pData->fieldList.name[j] = strdup(name));
774 CHKmalloc(pData->fieldList.varname[j] = strdup(vnamebuf));

12345