bin/cpdup/cpdup.c
1132
char *iobuf1 = malloc(GETIOSIZE);
bin/cpdup/cpdup.c
1224
char *link1 = malloc(GETLINKSIZE);
bin/cpdup/cpdup.c
1225
char *link2 = malloc(GETLINKSIZE);
bin/cpdup/cpdup.c
1392
char *buf = malloc(GETBUFSIZE);
bin/cpdup/cpdup.c
1479
List *list = malloc(sizeof(List));
bin/cpdup/cpdup.c
1616
node = malloc(sizeof(Node) + strlen(name) + 1);
bin/cpdup/cpdup.c
544
new = malloc(offsetof(struct hlink, name[plen + 1]));
bin/cpdup/cpdup.c
656
char *iobuf1 = malloc(GETIOSIZE);
bin/cpdup/cpdup.c
657
char *iobuf2 = malloc(GETIOSIZE);
bin/cpdup/cpdup.c
976
List *list = malloc(sizeof(List));
bin/cpdup/hclink.c
408
hnew = malloc(sizeof(struct HCHostDesc));
bin/cpdup/hclink.c
454
hd = malloc(sizeof(*hd));
bin/cpdup/hcproto.c
1979
if ((*gidlist = malloc(count * sizeof(gid_t))) != NULL) {
bin/cpdup/hcproto.c
2023
if ((*gidlist = malloc(count * sizeof(gid_t))) == NULL)
bin/cpdup/hcproto.c
431
den = malloc(sizeof(*den));
bin/cpdup/hcproto.c
512
*statpp = malloc(sizeof(struct stat));
bin/cpdup/hcproto.c
719
fdp = malloc(sizeof(int));
bin/cpdup/hcproto.c
774
fdp = malloc(sizeof(int));
bin/cpdup/md5.c
107
MD5Node *node = *pnode = malloc(sizeof(MD5Node));
bin/cpdup/md5.c
161
if ((node = *pnode = malloc(sizeof(MD5Node))) == NULL) {
bin/cpdup/md5.c
296
buf = malloc(MD5_DIGEST_LENGTH * 2 + 1);
bin/cpdup/misc.c
120
struct malloc_info *info = malloc(sizeof(*info) + bytes);
bin/cpdup/misc.c
55
s = malloc(imax);
bin/date/vary.c
96
if ((*nextp = (struct vary *)malloc(sizeof(struct vary))) == NULL)
bin/dd/dd.c
179
if ((in.db = malloc((size_t)out.dbsz + in.dbsz - 1)) == NULL)
bin/dd/dd.c
182
} else if ((in.db = malloc(MAX((size_t)in.dbsz, cbsz) + cbsz)) == NULL ||
bin/dd/dd.c
183
(out.db = malloc(out.dbsz + cbsz)) == NULL) {
bin/df/df.c
516
if ((listptr = malloc(sizeof(char*) * maxvfsconf)) == NULL) {
bin/df/df.c
532
(str = malloc(sizeof(char) * (32 * cnt + cnt + 2))) == NULL) {
bin/ed/buf.c
87
if ((lp = (line_t *) malloc(sizeof(line_t))) == NULL) {
bin/ed/ed.h
129
if ((ts = (char *) malloc(ti += max((i), MINBUFSZ))) == NULL) { \
bin/ed/glbl.c
165
if ((ts = (line_t **) malloc((ti += MINBUFSZ) *
bin/ed/main.c
1280
if ((np = (line_t *) malloc(sizeof(line_t))) == NULL) {
bin/ed/main.c
1351
(hup = (char *) malloc(n + 10)) != NULL) {
bin/ed/re.c
60
else if ((expr = (pattern_t *) malloc(sizeof(pattern_t))) == NULL) {
bin/ed/undo.c
47
(ustack = (undo_t *) malloc((usize = USIZE) * sizeof(undo_t))) == NULL) {
bin/expr/expr.y
114
vp = (struct val *) malloc (sizeof (*vp));
bin/expr/expr.y
131
vp = (struct val *) malloc (sizeof (*vp));
bin/expr/expr.y
192
tmp = malloc ((size_t)25);
bin/hostname/hostname.c
188
if ((buf = malloc(needed)) == NULL)
bin/ls/ls.c
571
jinitmax = malloc(strlen(initmax) * 2 + 2);
bin/ls/ls.c
714
if ((np = malloc(sizeof(NAMES) +
bin/mined/mined1.c
1219
p = malloc((unsigned) bytes);
bin/mv/mv.c
292
if (bp == NULL && (bp = malloc((size_t)blen)) == NULL) {
bin/pax/ftree.c
116
if ((fthead == NULL) && ((farray[0] = malloc(PAXPATHLEN+2)) == NULL)) {
bin/pax/ftree.c
155
if ((ft = (FTREE *)malloc(sizeof(FTREE))) == NULL) {
bin/pax/options.c
1384
if ((opt = (OPLIST *)malloc(sizeof(OPLIST))) == NULL) {
bin/pax/options.c
1492
temp = malloc(len);
bin/pax/pat_rep.c
116
if ((rep = (REPLACE *)malloc(sizeof(REPLACE))) == NULL) {
bin/pax/pat_rep.c
212
if ((pt = (PATTERN *)malloc(sizeof(PATTERN))) == NULL) {
bin/pax/pax.c
242
tempfile = malloc(tdlen + 1 + sizeof(_TFILE_BASE));
bin/pax/sel_subs.c
150
if ((pt = (USRT *)malloc(sizeof(USRT))) != NULL) {
bin/pax/sel_subs.c
247
if ((pt = (GRPT *)malloc(sizeof(GRPT))) != NULL) {
bin/pax/sel_subs.c
361
if ((pt = (TIME_RNG *)malloc(sizeof(TIME_RNG))) == NULL) {
bin/pax/tables.c
187
if ((pt = (HRDLNK *)malloc(sizeof(HRDLNK))) != NULL) {
bin/pax/tables.c
438
if ((pt = (FTM *)malloc(sizeof(FTM))) != NULL) {
bin/pax/tables.c
548
if ((pt = (NAMT *)malloc(sizeof(NAMT))) != NULL) {
bin/pax/tables.c
732
if ((pt = (DEVT *)malloc(sizeof(DEVT))) == NULL) {
bin/pax/tables.c
824
if ((dpt = (DLIST *)malloc(sizeof(DLIST))) == NULL)
bin/pax/tables.c
851
if ((lastdev <= 0) || ((dpt = (DLIST *)malloc(sizeof(DLIST))) == NULL))
bin/pax/tables.c
982
if ((pt = (ATDIR *)malloc(sizeof(ATDIR))) != NULL) {
bin/ps/fmt.c
113
if ((cp = malloc(len)) == NULL)
bin/ps/fmt.c
63
if ((buf = malloc((4 * arg_max) + 1)) == NULL)
bin/ps/keyword.c
304
if ((vent = malloc(sizeof(struct varent))) == NULL)
bin/ps/print.c
129
if ((vis_args = malloc(strlen(k->ki_args) * 4 + 1)) == NULL)
bin/ps/print.c
133
if ((vis_env = malloc(strlen(k->ki_env) * 4 + 1)) == NULL)
bin/ps/print.c
755
if ((cpy = malloc(len * 4 + 1)) == NULL)
bin/ps/print.c
770
if ((cpy2 = malloc(len * 4 + 1)) == NULL)
bin/ps/ps.c
356
if ((uids = malloc(sizeof (*uids))) == NULL)
bin/ps/ps.c
411
if ((KSort = malloc(nentries * sizeof(KINFO *))) == NULL)
bin/ps/ps.c
759
if ((newopts = ns = malloc(len + 2)) == NULL)
bin/rm/rm.c
456
if ((buf = malloc(bsize)) == NULL)
bin/sh/eval.c
1024
shellparam.malloc = 0;
bin/sh/memalloc.c
71
p = malloc(nbytes);
bin/sh/mknodes.c
457
if ((p = malloc(strlen(s) + 1)) == NULL)
bin/sh/options.c
333
shellparam.malloc = 1;
bin/sh/options.c
351
if (param->malloc) {
bin/sh/options.c
381
if (shellparam.malloc)
bin/sh/options.h
40
unsigned char malloc; /* if parameter list dynamically allocated */
bin/uuidgen/uuidgen.c
84
store = (uuid_t*)malloc(sizeof(uuid_t) * count);
crypto/libressl/apps/openssl/apps.c
1395
if ((retdb = malloc(sizeof(CA_DB))) == NULL) {
crypto/libressl/apps/openssl/apps.c
1643
buf = malloc(buflen);
crypto/libressl/apps/openssl/apps.c
2015
out = malloc(strlen(in) + 1);
crypto/libressl/apps/openssl/apps.c
381
buff = malloc(bufsiz);
crypto/libressl/apps/openssl/ca.c
2238
row[DB_type] = malloc(2);
crypto/libressl/apps/openssl/ca.c
2251
row[DB_file] = malloc(8);
crypto/libressl/apps/openssl/ca.c
2499
row[DB_type] = malloc(2);
crypto/libressl/apps/openssl/ca.c
2512
row[DB_file] = malloc(8);
crypto/libressl/apps/openssl/ca.c
2586
row[DB_serial] = malloc(strlen(serial) + 2);
crypto/libressl/apps/openssl/ca.c
3027
if ((ret = malloc(len * 2 + 1)) != NULL) {
crypto/libressl/apps/openssl/dgst.c
348
if ((buf = malloc(BUFSIZE)) == NULL) {
crypto/libressl/apps/openssl/dgst.c
522
sigbuf = malloc(siglen);
crypto/libressl/apps/openssl/dh.c
239
data = malloc(len);
crypto/libressl/apps/openssl/dhparam.c
416
data = malloc(len);
crypto/libressl/apps/openssl/dsaparam.c
264
data = malloc(len + 20);
crypto/libressl/apps/openssl/ecparam.c
453
buffer = malloc(buf_len);
crypto/libressl/apps/openssl/enc.c
455
strbuf = malloc(SIZE);
crypto/libressl/apps/openssl/enc.c
456
buff = malloc(EVP_ENCODE_LENGTH(bsize));
crypto/libressl/apps/openssl/passwd.c
216
passwd = passwd_malloc = malloc(passwd_malloc_size);
crypto/libressl/apps/openssl/passwd.c
453
*salt_p = *salt_malloc_p = malloc(3);
crypto/libressl/apps/openssl/passwd.c
469
*salt_p = *salt_malloc_p = malloc(9);
crypto/libressl/apps/openssl/pkeyutl.c
367
buf_out = malloc(buf_outlen);
crypto/libressl/apps/openssl/rsautl.c
336
rsa_out = malloc(keysize);
crypto/libressl/apps/openssl/s_cb.c
832
buffer = malloc(length);
crypto/libressl/apps/openssl/s_cb.c
899
buffer = malloc(length);
crypto/libressl/apps/openssl/s_client.c
1831
exportedkeymat = malloc(s_client_config.keymatexportlen);
crypto/libressl/apps/openssl/s_client.c
945
if (((cbuf = malloc(BUFSIZZ)) == NULL) ||
crypto/libressl/apps/openssl/s_client.c
946
((sbuf = malloc(BUFSIZZ)) == NULL) ||
crypto/libressl/apps/openssl/s_client.c
947
((pbuf = malloc(BUFSIZZ)) == NULL) ||
crypto/libressl/apps/openssl/s_client.c
948
((mbuf = malloc(BUFSIZZ + 1)) == NULL)) { /* NUL byte */
crypto/libressl/apps/openssl/s_server.c
1544
if ((buf = malloc(bufsize)) == NULL) {
crypto/libressl/apps/openssl/s_server.c
1921
exportedkeymat = malloc(s_server_config.keymatexportlen);
crypto/libressl/apps/openssl/s_server.c
1968
buf = malloc(bufsize);
crypto/libressl/apps/openssl/speed.c
505
if ((buf = malloc(BUFSIZE)) == NULL) {
crypto/libressl/apps/openssl/speed.c
509
if ((buf2 = malloc(BUFSIZE)) == NULL) {
crypto/libressl/apps/openssl/ts.c
692
*md_value = malloc(md_value_len);
crypto/libressl/apps/openssl/ts.c
755
if ((nonce->data = malloc(nonce->length + 1)) == NULL)
crypto/libressl/apps/openssl/x509.c
1102
m = malloc(z);
crypto/libressl/apps/openssl/x509.c
1348
buf = malloc(len);
crypto/libressl/crypto/asn1/a_int.c
812
s = malloc(len + 1);
crypto/libressl/crypto/asn1/a_mbstr.c
241
if (!(p = malloc(outlen + 1))) {
crypto/libressl/crypto/asn1/a_strex.c
313
der_buf = malloc(der_len);
crypto/libressl/crypto/asn1/asn1_gen.c
228
new_der = malloc(len);
crypto/libressl/crypto/asn1/asn1_item.c
300
if ((buf_out = malloc(out_len)) == NULL) {
crypto/libressl/crypto/asn1/asn1_old.c
156
b = malloc(n);
crypto/libressl/crypto/asn1/asn1_old.c
82
b = malloc(i + 10);
crypto/libressl/crypto/asn1/asn_mime.c
860
mhdr = malloc(sizeof(MIME_HEADER));
crypto/libressl/crypto/asn1/asn_mime.c
895
mparam = malloc(sizeof(MIME_PARAM));
crypto/libressl/crypto/asn1/asn_moid.c
150
lntmp = malloc((p - ln) + 1);
crypto/libressl/crypto/asn1/bio_asn1.c
156
if ((ctx->buf = malloc(DEFAULT_ASN1_BUF_SIZE)) == NULL) {
crypto/libressl/crypto/asn1/bio_ndef.c
112
ndef_aux = malloc(sizeof(NDEF_SUPPORT));
crypto/libressl/crypto/asn1/bio_ndef.c
165
p = malloc(derlen);
crypto/libressl/crypto/asn1/bio_ndef.c
232
p = malloc(derlen);
crypto/libressl/crypto/asn1/p5_pbev2.c
314
if (!(osalt->data = malloc (saltlen)))
crypto/libressl/crypto/asn1/t_x509.c
269
if ((der = dertmp = malloc(derlen)) == NULL)
crypto/libressl/crypto/asn1/tasn_enc.c
115
buf = malloc(len);
crypto/libressl/crypto/asn1/tasn_enc.c
448
tmpdat = malloc(skcontlen);
crypto/libressl/crypto/asn1/tasn_new.c
298
typ = malloc(sizeof(ASN1_TYPE));
crypto/libressl/crypto/asn1/x_name.c
247
ret = malloc(sizeof(X509_NAME));
crypto/libressl/crypto/asn1/x_name.c
507
p = malloc(len);
crypto/libressl/crypto/asn1/x_pkey.c
72
if ((ret = malloc(sizeof(X509_PKEY))) == NULL) {
crypto/libressl/crypto/bio/bf_buff.c
102
ctx = malloc(sizeof(BIO_F_BUFFER_CTX));
crypto/libressl/crypto/bio/bf_buff.c
105
ctx->ibuf = malloc(DEFAULT_BUFFER_SIZE);
crypto/libressl/crypto/bio/bf_buff.c
110
ctx->obuf = malloc(DEFAULT_BUFFER_SIZE);
crypto/libressl/crypto/bio/bf_buff.c
344
p1 = malloc(num);
crypto/libressl/crypto/bio/bf_buff.c
374
p1 = malloc(num);
crypto/libressl/crypto/bio/bf_buff.c
379
p2 = malloc(num);
crypto/libressl/crypto/bio/bf_nbio.c
109
if (!(nt = malloc(sizeof(NBIO_TEST))))
crypto/libressl/crypto/bio/bio_lib.c
139
ret = malloc(sizeof(BIO));
crypto/libressl/crypto/bio/bss_conn.c
297
if ((ret = malloc(sizeof(BIO_CONNECT))) == NULL)
crypto/libressl/crypto/bn/bn_ctx.c
226
BN_CTX *ret = malloc(sizeof(BN_CTX));
crypto/libressl/crypto/bn/bn_ctx.c
438
BN_POOL_ITEM *item = malloc(sizeof(BN_POOL_ITEM));
crypto/libressl/crypto/bn/bn_lib.c
100
if ((ret = malloc(sizeof(BIGNUM))) == NULL) {
crypto/libressl/crypto/bn/bn_mont.c
334
if ((ret = malloc(sizeof(BN_MONT_CTX))) == NULL)
crypto/libressl/crypto/bn/bn_print.c
119
buf = malloc(BN_is_negative(a) + 2);
crypto/libressl/crypto/bn/bn_print.c
141
buf = malloc(num + 3);
crypto/libressl/crypto/bn/bn_print.c
81
buf = malloc(BN_is_negative(a) + a->top * BN_BYTES * 2 + 2);
crypto/libressl/crypto/bn/bn_rand.c
146
buf = malloc(bytes);
crypto/libressl/crypto/bn/bn_recp.c
79
if ((ret = malloc(sizeof(BN_RECP_CTX))) == NULL)
crypto/libressl/crypto/bytestring/bs_cbs.c
95
if ((*out_ptr = malloc(cbs->len)) == NULL)
crypto/libressl/crypto/cmac/cmac.c
100
ctx = malloc(sizeof(CMAC_CTX));
crypto/libressl/crypto/cms/cms_enc.c
132
tkey = malloc(tkeylen);
crypto/libressl/crypto/cms/cms_enc.c
213
if ((ec->key = malloc(keylen)) == NULL) {
crypto/libressl/crypto/cms/cms_env.c
397
ek = malloc(eklen);
crypto/libressl/crypto/cms/cms_env.c
476
ek = malloc(eklen);
crypto/libressl/crypto/cms/cms_env.c
719
wkey = malloc(ec->keylen + 8);
crypto/libressl/crypto/cms/cms_env.c
781
ukey = malloc(kekri->encryptedKey->length - 8);
crypto/libressl/crypto/cms/cms_kari.c
261
out = malloc(outlen);
crypto/libressl/crypto/cms/cms_pwri.c
238
if ((tmp = malloc(inlen)) == NULL) {
crypto/libressl/crypto/cms/cms_pwri.c
399
key = malloc(keylen);
crypto/libressl/crypto/cms/cms_pwri.c
408
key = malloc(pwri->encryptedKey->length);
crypto/libressl/crypto/cms/cms_sd.c
655
sig = malloc(siglen);
crypto/libressl/crypto/cms/cms_sd.c
669
sig = malloc(EVP_PKEY_size(si->pkey));
crypto/libressl/crypto/cms/cms_sd.c
752
abuf = malloc(siglen);
crypto/libressl/crypto/conf/conf_api.c
257
if ((v = malloc(sizeof(CONF_VALUE))) == NULL)
crypto/libressl/crypto/conf/conf_api.c
260
if ((v->section = malloc(i)) == NULL)
crypto/libressl/crypto/conf/conf_def.c
137
ret = malloc(sizeof(CONF) + sizeof(unsigned short *));
crypto/libressl/crypto/conf/conf_def.c
360
if (!(v = malloc(sizeof(CONF_VALUE)))) {
crypto/libressl/crypto/conf/conf_mod.c
291
tmod = malloc(sizeof(CONF_MODULE));
crypto/libressl/crypto/conf/conf_mod.c
346
imod = malloc(sizeof(CONF_IMODULE));
crypto/libressl/crypto/ct/ct_b64.c
88
outbuf = malloc(outlen);
crypto/libressl/crypto/ct/ct_oct.c
240
pstart = p = malloc(len);
crypto/libressl/crypto/ct/ct_oct.c
288
pstart = p = malloc(len);
crypto/libressl/crypto/ct/ct_oct.c
383
if ((*pp = malloc(len)) == NULL) {
crypto/libressl/crypto/ct/ct_sct.c
166
sct->log_id = malloc(log_id_len);
crypto/libressl/crypto/ct/ct_sct.c
223
sct->ext = malloc(ext_len);
crypto/libressl/crypto/ct/ct_sct.c
252
sct->sig = malloc(sig_len);
crypto/libressl/crypto/ct/ct_sct_ctx.c
262
md = malloc(SHA256_DIGEST_LENGTH);
crypto/libressl/crypto/dh/dh_ameth.c
350
m= malloc(buf_len + 10);
crypto/libressl/crypto/dh/dh_lib.c
123
ret = malloc(sizeof(DH));
crypto/libressl/crypto/dh/dh_pmeth.c
91
dctx = malloc(sizeof(DH_PKEY_CTX));
crypto/libressl/crypto/dsa/dsa_ameth.c
416
m = malloc(buf_len + 10);
crypto/libressl/crypto/dsa/dsa_ameth.c
603
m = malloc(buf_len + 10);
crypto/libressl/crypto/dsa/dsa_lib.c
128
ret = malloc(sizeof(DSA));
crypto/libressl/crypto/dsa/dsa_pmeth.c
91
dctx = malloc(sizeof(DSA_PKEY_CTX));
crypto/libressl/crypto/ec/ec_ameth.c
126
penc = malloc(penclen);
crypto/libressl/crypto/ec/ec_ameth.c
338
ep = malloc(eplen);
crypto/libressl/crypto/ec/ec_ameth.c
481
if ((buffer = malloc(buf_len)) == NULL) {
crypto/libressl/crypto/ec/ec_ameth.c
902
penc = malloc(penclen);
crypto/libressl/crypto/ec/ec_asn1.c
1184
if (!(ret->seed = malloc(params->curve->seed->length))) {
crypto/libressl/crypto/ec/ec_asn1.c
1443
buffer = malloc(buf_len);
crypto/libressl/crypto/ec/ec_asn1.c
1590
if ((*out = malloc(buf_len)) == NULL) {
crypto/libressl/crypto/ec/ec_asn1.c
832
if ((buffer_1 = malloc(len_1)) == NULL) {
crypto/libressl/crypto/ec/ec_asn1.c
848
if ((buffer_2 = malloc(len_2)) == NULL) {
crypto/libressl/crypto/ec/ec_asn1.c
944
if ((buffer = malloc(len)) == NULL) {
crypto/libressl/crypto/ec/ec_lib.c
213
dest->seed = malloc(src->seed_len);
crypto/libressl/crypto/ec/ec_lib.c
484
if ((group->seed = malloc(len)) == NULL)
crypto/libressl/crypto/ec/ec_lib.c
696
d = malloc(sizeof *d);
crypto/libressl/crypto/ec/ec_lib.c
840
ret = malloc(sizeof *ret);
crypto/libressl/crypto/ec/ec_lib.c
89
ret = malloc(sizeof *ret);
crypto/libressl/crypto/ec/ec_mult.c
108
ret = malloc(sizeof(EC_PRE_COMP));
crypto/libressl/crypto/ec/ec_mult.c
205
r = malloc(1);
crypto/libressl/crypto/ec/ec_mult.c
232
r = malloc(len + 1); /* modified wNAF may be one digit longer than
crypto/libressl/crypto/ec/ec_mult.c
553
wNAF[i] = malloc(wNAF_len[i]);
crypto/libressl/crypto/ec/ec_print.c
137
if ((buf = malloc(buf_len)) == NULL)
crypto/libressl/crypto/ec/ec_print.c
71
if ((buf = malloc(buf_len)) == NULL)
crypto/libressl/crypto/ec/ec_print.c
95
buf = malloc(buf_len);
crypto/libressl/crypto/ec/eck_prn.c
252
if ((buffer = malloc(buf_len)) == NULL) {
crypto/libressl/crypto/ecdh/ech_key.c
160
if ((buf = malloc(buflen)) == NULL) {
crypto/libressl/crypto/ecdh/ech_lib.c
124
ret = malloc(sizeof(ECDH_DATA));
crypto/libressl/crypto/ecdsa/ecs_lib.c
112
ret = malloc(sizeof(ECDSA_DATA));
crypto/libressl/crypto/engine/eng_lib.c
167
ENGINE_CLEANUP_ITEM *item = malloc(sizeof(ENGINE_CLEANUP_ITEM));
crypto/libressl/crypto/engine/eng_lib.c
76
ret = malloc(sizeof(ENGINE));
crypto/libressl/crypto/engine/eng_table.c
153
fnd = malloc(sizeof(ENGINE_PILE));
crypto/libressl/crypto/err/err.c
1062
ret = malloc(sizeof(ERR_STATE));
crypto/libressl/crypto/evp/bio_b64.c
120
ctx = malloc(sizeof(BIO_B64_CTX));
crypto/libressl/crypto/evp/bio_enc.c
115
ctx = malloc(sizeof(BIO_ENC_CTX));
crypto/libressl/crypto/evp/e_aes.c
1313
gctx->iv = malloc(arg);
crypto/libressl/crypto/evp/e_chacha20poly1305.c
66
c20_ctx = malloc(sizeof(struct aead_chacha20_poly1305_ctx));
crypto/libressl/crypto/evp/e_gost2814789.c
124
p = buf = malloc(len);
crypto/libressl/crypto/evp/evp_pbe.c
231
pbe_tmp = malloc(sizeof(EVP_PBE_CTL));
crypto/libressl/crypto/evp/p_lib.c
204
ret = malloc(sizeof(EVP_PKEY));
crypto/libressl/crypto/evp/pmeth_lib.c
198
ret = malloc(sizeof(EVP_PKEY_CTX));
crypto/libressl/crypto/evp/pmeth_lib.c
296
rctx = malloc(sizeof(EVP_PKEY_CTX));
crypto/libressl/crypto/ex_data.c
320
gen = malloc(sizeof(EX_CLASS_ITEM));
crypto/libressl/crypto/ex_data.c
348
CRYPTO_EX_DATA_FUNCS *a = malloc(sizeof(CRYPTO_EX_DATA_FUNCS));
crypto/libressl/crypto/gost/gost89imit_pmeth.c
117
keydata = malloc(32);
crypto/libressl/crypto/gost/gostr341001_key.c
79
ret = malloc(sizeof(GOST_KEY));
crypto/libressl/crypto/gost/gostr341001_pmeth.c
602
char *ukm = malloc(p1);
crypto/libressl/crypto/hmac/hm_ameth.c
139
*pder = malloc(os->length);
crypto/libressl/crypto/kdf/hkdf_evp.c
124
if ((kctx->salt = malloc(p1)) == NULL)
crypto/libressl/crypto/kdf/hkdf_evp.c
136
if ((kctx->key = malloc(p1)) == NULL)
crypto/libressl/crypto/lhash/lhash.c
172
if ((nn = malloc(sizeof(LHASH_NODE))) == NULL) {
crypto/libressl/crypto/malloc-wrapper.c
123
return malloc(num);
crypto/libressl/crypto/malloc-wrapper.c
137
return malloc(num);
crypto/libressl/crypto/malloc-wrapper.c
176
return malloc(num);
crypto/libressl/crypto/malloc-wrapper.c
62
*m = malloc;
crypto/libressl/crypto/malloc-wrapper.c
85
*m = malloc;
crypto/libressl/crypto/modes/gcm128.c
1553
if ((ret = malloc(sizeof(GCM128_CONTEXT))))
crypto/libressl/crypto/objects/o_names.c
173
onp = malloc(sizeof(OBJ_NAME));
crypto/libressl/crypto/objects/o_names.c
68
name_funcs = malloc(sizeof(NAME_FUNCS));
crypto/libressl/crypto/objects/obj_dat.c
306
if (!(ao[ADDED_NID] = malloc(sizeof(ADDED_OBJ))))
crypto/libressl/crypto/objects/obj_dat.c
309
if (!(ao[ADDED_DATA] = malloc(sizeof(ADDED_OBJ))))
crypto/libressl/crypto/objects/obj_dat.c
312
if (!(ao[ADDED_SNAME] = malloc(sizeof(ADDED_OBJ))))
crypto/libressl/crypto/objects/obj_dat.c
315
if (!(ao[ADDED_LNAME] = malloc(sizeof(ADDED_OBJ))))
crypto/libressl/crypto/objects/obj_dat.c
665
if ((buf = malloc(i)) == NULL) {
crypto/libressl/crypto/objects/obj_lib.c
87
data = malloc(o->length);
crypto/libressl/crypto/ocsp/ocsp_ext.c
345
os.data = malloc(os.length);
crypto/libressl/crypto/ocsp/ocsp_ht.c
156
rctx = malloc(sizeof(OCSP_REQ_CTX));
crypto/libressl/crypto/ocsp/ocsp_ht.c
170
rctx->iobuf = malloc(rctx->iobuflen);
crypto/libressl/crypto/pem/pem_lib.c
372
data = malloc(dsize + 20);
crypto/libressl/crypto/pem/pvkfmt.c
111
tmpbuf = malloc(nbyte);
crypto/libressl/crypto/pem/pvkfmt.c
290
buf = malloc(length);
crypto/libressl/crypto/pem/pvkfmt.c
505
p = malloc(outlen);
crypto/libressl/crypto/pem/pvkfmt.c
748
enctmp = malloc(keylen + 8);
crypto/libressl/crypto/pem/pvkfmt.c
824
buf = malloc(buflen);
crypto/libressl/crypto/pem/pvkfmt.c
859
start = p = malloc(outlen);
crypto/libressl/crypto/pkcs12/p12_decr.c
89
if (!(out = malloc(inlen + EVP_CIPHER_CTX_block_size(&ctx)))) {
crypto/libressl/crypto/pkcs12/p12_key.c
117
if ((D = malloc(v)) == NULL)
crypto/libressl/crypto/pkcs12/p12_key.c
119
if ((Ai = malloc(u)) == NULL)
crypto/libressl/crypto/pkcs12/p12_key.c
121
if ((B = malloc(v + 1)) == NULL)
crypto/libressl/crypto/pkcs12/p12_key.c
132
if ((I = malloc(Ilen)) == NULL)
crypto/libressl/crypto/pkcs12/p12_mutl.c
239
if (!(p12->mac->salt->data = malloc(saltlen))) {
crypto/libressl/crypto/pkcs12/p12_utl.c
117
if ((asctmp = malloc(asclen)) == NULL)
crypto/libressl/crypto/pkcs7/pk7_doit.c
172
ek = malloc(eklen);
crypto/libressl/crypto/pkcs7/pk7_doit.c
222
ek = malloc(eklen);
crypto/libressl/crypto/pkcs7/pk7_doit.c
563
tkey = malloc(tkeylen);
crypto/libressl/crypto/pkcs7/pk7_doit.c
803
abuf = malloc(abuflen);
crypto/libressl/crypto/pkcs7/pk7_doit.c
895
abuf = malloc(siglen);
crypto/libressl/crypto/rsa/rsa_ameth.c
443
m = malloc(buf_len + 10);
crypto/libressl/crypto/rsa/rsa_eay.c
194
buf = malloc(num);
crypto/libressl/crypto/rsa/rsa_eay.c
373
buf = malloc(num);
crypto/libressl/crypto/rsa/rsa_eay.c
501
buf = malloc(num);
crypto/libressl/crypto/rsa/rsa_eay.c
635
buf = malloc(num);
crypto/libressl/crypto/rsa/rsa_oaep.c
137
if ((dbmask = malloc(dbmask_len)) == NULL) {
crypto/libressl/crypto/rsa/rsa_oaep.c
206
if ((db = malloc(dblen)) == NULL) {
crypto/libressl/crypto/rsa/rsa_oaep.c
210
if ((em = malloc(num)) == NULL) {
crypto/libressl/crypto/rsa/rsa_pss.c
138
DB = malloc(maskedDBLen);
crypto/libressl/crypto/rsa/rsa_pss.c
236
salt = malloc(sLen);
crypto/libressl/crypto/rsa/rsa_sign.c
192
if ((decrypt_buf = malloc(siglen)) == NULL) {
crypto/libressl/crypto/stack/stack.c
121
if ((ret = malloc(sizeof(_STACK))) == NULL)
crypto/libressl/crypto/ts/ts_rsp_sign.c
943
if (!(pp = malloc(len))) {
crypto/libressl/crypto/ts/ts_rsp_verify.c
657
if (!(result = malloc(length))) {
crypto/libressl/crypto/ts/ts_rsp_verify.c
719
if ((imprint = malloc(imprint_len)) == NULL) {
crypto/libressl/crypto/ts/ts_verify_ctx.c
213
if (!(ret->imprint = malloc(ret->imprint_len)))
crypto/libressl/crypto/txt_db/txt_db.c
126
if (!(p = malloc(add + offset)))
crypto/libressl/crypto/txt_db/txt_db.c
88
if ((ret = malloc(sizeof(TXT_DB))) == NULL)
crypto/libressl/crypto/x509/by_dir.c
150
if ((a = malloc(sizeof(*a))) == NULL) {
crypto/libressl/crypto/x509/by_dir.c
238
ent = malloc(sizeof(*ent));
crypto/libressl/crypto/x509/by_dir.c
379
hent = malloc(sizeof(*hent));
crypto/libressl/crypto/x509/pcy_cache.c
133
cache = malloc(sizeof(X509_POLICY_CACHE));
crypto/libressl/crypto/x509/pcy_data.c
98
ret = malloc(sizeof(X509_POLICY_DATA));
crypto/libressl/crypto/x509/pcy_node.c
119
node = malloc(sizeof(X509_POLICY_NODE));
crypto/libressl/crypto/x509/pcy_tree.c
214
tree = malloc(sizeof(X509_POLICY_TREE));
crypto/libressl/crypto/x509/x509_alt.c
731
objtmp = malloc(objlen + 1);
crypto/libressl/crypto/x509/x509_conf.c
204
if (!(ext_der = malloc(ext_len)))
crypto/libressl/crypto/x509/x509_constraints.c
73
if ((new->der = malloc(name->der_len)) == NULL)
crypto/libressl/crypto/x509/x509_constraints.c
783
if (bytes == NULL || ((vname->der = malloc(len)) ==
crypto/libressl/crypto/x509/x509_constraints.c
832
(vname->der = malloc(subject_name->canon_enclen)) == NULL) {
crypto/libressl/crypto/x509/x509_constraints.c
948
if (bytes == NULL || (name->der = malloc(len)) == NULL) {
crypto/libressl/crypto/x509/x509_ia5.c
209
if (!(tmp = malloc(ia5->length + 1))) {
crypto/libressl/crypto/x509/x509_info.c
282
if (!(objtmp = malloc(objlen + 1))) {
crypto/libressl/crypto/x509/x509_lib.c
165
if (!(tmpext = malloc(sizeof(X509V3_EXT_METHOD)))) {
crypto/libressl/crypto/x509/x509_purp.c
234
if ((ptmp = malloc(sizeof(X509_PURPOSE))) == NULL) {
crypto/libressl/crypto/x509/x509_trs.c
206
if (!(trtmp = malloc(sizeof(X509_TRUST)))) {
crypto/libressl/crypto/x509/x509_utl.c
448
if (!(tmp = malloc(len * 3 + 1))) {
crypto/libressl/crypto/x509/x509_utl.c
475
if (!(hexbuf = malloc(strlen(str) >> 1)))
crypto/libressl/crypto/x509/x509_vpm.c
390
if ((tmp = malloc(srclen)) == NULL)
crypto/libressl/crypto/x509/x509spki.c
119
der_spki = malloc(der_len);
crypto/libressl/crypto/x509/x509spki.c
94
if (!(spki_der = malloc(len + 1))) {
crypto/libressl/ssl/bs_cbs.c
95
if ((*out_ptr = malloc(cbs->len)) == NULL)
crypto/libressl/ssl/d1_pkt.c
214
rdata = malloc(sizeof(DTLS1_RECORD_DATA_INTERNAL));
crypto/libressl/ssl/pqueue.c
73
pitem *item = malloc(sizeof(pitem));
crypto/libressl/ssl/ssl_clnt.c
1806
if ((enc_pms = malloc(RSA_size(rsa))) == NULL) {
crypto/libressl/ssl/ssl_lib.c
3464
if ((ssl->internal->quic_transport_params = malloc(params_len)) == NULL)
crypto/libressl/ssl/ssl_packet.c
161
if ((client_random = malloc(SSL3_RANDOM_SIZE)) == NULL)
crypto/libressl/ssl/ssl_sess.c
967
malloc(sizeof(TLS_SESSION_TICKET_EXT) + ext_len);
crypto/libressl/ssl/ssl_srvr.c
1650
if ((pms = malloc(pms_len)) == NULL)
crypto/libressl/ssl/ssl_tlsext.c
1129
if ((s->session->tlsext_tick = malloc(ticklen)) == NULL)
crypto/libressl/ssl/t1_enc.c
441
val = malloc(vallen);
crypto/libressl/tls/tls_client.c
189
if ((session = malloc(session_len)) == NULL)
crypto/libressl/tls/tls_config.c
297
if ((buf = malloc(buf_len)) == NULL) {
crypto/libressl/tls/tls_config.c
64
if ((*buf = malloc(*len)) == NULL) {
crypto/libressl/tls/tls_conninfo.c
169
if ((ctx->conninfo->alpn = malloc(len + 1)) == NULL)
crypto/libressl/tls/tls_conninfo.c
206
if ((ctx->conninfo->peer_cert = malloc(bptr->length)) == NULL)
crypto/libressl/tls/tls_ocsp.c
353
if ((ocsp_staple = malloc(ctx->keypair->ocsp_staple_len)) == NULL)
crypto/libressl/tls/tls_util.c
174
if ((buf = malloc(size)) == NULL)
crypto/libressl/tls/tls_util.c
200
if ((buf = malloc(size)) == NULL)
crypto/libressl/tls/tls_util.c
34
if ((out = malloc(len)) == NULL)
crypto/openssh/auth-pam.c
971
ret = malloc(l + 1);
crypto/openssh/kexdh.c
94
if ((kbuf = malloc(klen)) == NULL ||
crypto/openssh/kexecdh.c
174
if ((kbuf = malloc(klen)) == NULL ||
crypto/openssh/krl.c
261
if ((irs = malloc(sizeof(rs))) == NULL)
crypto/openssh/krl.c
423
if ((blob = malloc(len)) == NULL)
crypto/openssh/krl.c
560
if ((blob = malloc(len)) == NULL)
crypto/openssh/match.c
324
char *fix_prop = malloc(len);
crypto/openssh/misc.c
2157
if ((ret = malloc(sshbuf_len(buf) + 1)) == NULL)
crypto/openssh/misc.c
2614
if ((ret = malloc(strlen((s)) + 1)) == NULL) {
crypto/openssh/scp.c
850
if ((cp = malloc(brace_start + (sel_end - sel_start) +
crypto/openssh/sftp-realpath.c
75
resolved = malloc(PATH_MAX);
crypto/openssh/ssh-dss.c
312
if ((*sigp = malloc(len)) == NULL) {
crypto/openssh/ssh-ecdsa.c
273
if ((*sigp = malloc(len)) == NULL) {
crypto/openssh/ssh-ed25519-sk.c
222
if ((m = malloc(smlen)) == NULL) {
crypto/openssh/ssh-ed25519.c
168
if ((sig = malloc(slen)) == NULL)
crypto/openssh/ssh-ed25519.c
186
if ((*sigp = malloc(len)) == NULL) {
crypto/openssh/ssh-ed25519.c
248
if ((sm = malloc(smlen)) == NULL || (m = malloc(mlen)) == NULL) {
crypto/openssh/ssh-ed25519.c
84
if ((k->ed25519_pk = malloc(ED25519_PK_SZ)) == NULL ||
crypto/openssh/ssh-ed25519.c
85
(k->ed25519_sk = malloc(ED25519_SK_SZ)) == NULL)
crypto/openssh/ssh-ed25519.c
96
if ((to->ed25519_pk = malloc(ED25519_PK_SZ)) == NULL)
crypto/openssh/ssh-rsa.c
430
if ((sig = malloc(slen)) == NULL) {
crypto/openssh/ssh-rsa.c
457
if ((*sigp = malloc(len)) == NULL) {
crypto/openssh/ssh-rsa.c
655
if ((decrypted = malloc(rsasize)) == NULL) {
crypto/openssh/ssh-xmss.c
121
if ((to->xmss_pk = malloc(pklen)) == NULL)
crypto/openssh/ssh-xmss.c
227
if ((sig = malloc(slen)) == NULL)
crypto/openssh/ssh-xmss.c
246
if ((*sigp = malloc(len)) == NULL) {
crypto/openssh/ssh-xmss.c
324
if ((sm = malloc(smlen)) == NULL || (m = malloc(mlen)) == NULL) {
crypto/openssh/ssh_api.c
210
if ((k = malloc(sizeof(*k))) == NULL ||
crypto/openssh/ssh_api.c
211
(k_prv = malloc(sizeof(*k_prv))) == NULL) {
crypto/openssh/ssh_api.c
224
if ((k = malloc(sizeof(*k))) == NULL)
crypto/openssh/sshbuf-getput-basic.c
200
if ((*valp = malloc(len + 1)) == NULL) {
crypto/openssh/sshbuf-getput-basic.c
292
if ((*valp = malloc(len + 1)) == NULL) {
crypto/openssh/sshbuf-misc.c
105
if ((s = malloc(slen)) == NULL)
crypto/openssh/sshbuf-misc.c
157
if ((p = malloc(plen)) == NULL)
crypto/openssh/sshbuf-misc.c
229
if ((r = malloc(l + 1)) == NULL)
crypto/openssh/sshbuf-misc.c
83
if (SIZE_MAX / 2 <= len || (ret = malloc(len * 2 + 1)) == NULL)
crypto/openssh/sshkey-xmss.c
1014
(iv = malloc(ivlen)) == NULL) {
crypto/openssh/sshkey-xmss.c
386
if ((k->xmss_pk = malloc(sshkey_xmss_pklen(k))) == NULL ||
crypto/openssh/sshkey-xmss.c
387
(k->xmss_sk = malloc(sshkey_xmss_sklen(k))) == NULL) {
crypto/openssh/sshkey-xmss.c
552
if ((sig = malloc(required_siglen)) == NULL)
crypto/openssh/sshkey-xmss.c
922
(iv = malloc(ivlen)) == NULL) {
crypto/openssh/sshkey.c
1560
if ((prekey = malloc(SSHKEY_SHIELD_PREKEY_LEN)) == NULL) {
crypto/openssh/sshkey.c
1600
if ((enc = malloc(enclen)) == NULL) {
crypto/openssh/sshkey.c
827
if ((*blobp = malloc(len)) == NULL) {
crypto/openssh/umac.c
1012
ctx = (uhash_ctx_t)malloc(sizeof(uhash_ctx)+ALLOC_BOUNDARY);
crypto/openssh/utf8.c
123
if ((dst = malloc(sz)) == NULL) {
crypto/openssh/xmalloc.c
40
ptr = malloc(size);
games/adventure/io.c
569
if ((tbuf = (char *) malloc(msg->txtlen + 1)) == NULL)
games/adventure/save.c
113
sf = malloc(sizeof(*sf));
games/adventure/vocab.c
146
h->atab = malloc(length(word));
games/arithmetic/arithmetic.c
300
if ((p = malloc(sizeof(*p))) == NULL)
games/atc/grammar.y
178
sp->beacon = malloc((sp->num_beacons + REALLOC)
games/atc/grammar.y
208
sp->exit = malloc((sp->num_exits + REALLOC) *
games/atc/grammar.y
240
sp->airport = malloc((sp->num_airports +
games/atc/grammar.y
270
sp->line = malloc((sp->num_lines + REALLOC) *
games/banner/banner.c
1052
if ((message = malloc((size_t)j)) == NULL)
games/banner/banner.c
1061
if ((message = malloc((size_t)MAXMSG)) == NULL)
games/battlestar/save.c
156
newname = malloc(len + 1);
games/battlestar/save.c
167
newname = malloc(tmpl + len + 2);
games/battlestar/save.c
177
newname = malloc(len + 1);
games/boggle/boggle/bog.c
678
board = malloc(ncubes + 1);
games/boggle/boggle/bog.c
692
pwords = malloc(maxpspace);
games/boggle/boggle/bog.c
698
mwords = malloc(maxmspace);
games/boggle/boggle/mach.c
101
separator = malloc(4 * grid + 2);
games/boggle/boggle/word.c
140
if ((dictspace = malloc(statb.st_size + 1)) == NULL) {
games/caesar/caesar.c
94
if ((inbuf = malloc(LINELENGTH)) == NULL)
games/fortune/fortune/fortune.c
1235
if ((new = malloc(cnt)) == NULL) {
games/fortune/fortune/fortune.c
851
if ((new = malloc(size)) == NULL) {
games/gomoku/pickmove.c
471
ncbp = (struct combostr *)malloc(sizeof(struct combostr) +
games/gomoku/pickmove.c
717
ncbp = (struct combostr *)malloc(sizeof(struct combostr) +
games/gomoku/pickmove.c
918
nep = (struct elist *)malloc(sizeof(struct elist));
games/hack/alloc.c
73
ptr = malloc(len);
games/hunt/huntd/answer.c
494
ip = (IDENT *) malloc(sizeof (IDENT));
games/hunt/huntd/answer.c
93
sp = (struct spawn *)malloc(sizeof *sp);
games/hunt/huntd/execute.c
497
bp = (BULLET *) malloc(sizeof (BULLET)); /* NOSTRICT */
games/hunt/huntd/expl.c
61
ep = (EXPL *) malloc(sizeof (EXPL)); /* NOSTRICT */
games/hunt/huntd/shots.c
872
nbp = (BULLET *) malloc(sizeof (BULLET));
games/larn/diag.c
292
sp = malloc(sizeof(struct sphere));
games/larn/io.c
726
if ((outbuf = malloc(BUFBIG + 16)) == NULL) {
games/larn/main.c
110
cell = malloc(sizeof(struct cel) * (MAXLEVEL + MAXVLEVEL) * MAXX * MAXY);
games/larn/main.c
113
lpbuf = malloc((5 * BUFBIG) >> 2); /* output buffer */
games/larn/main.c
114
inbuffer = malloc((5 * MAXIBUF) >> 2); /* output buffer */
games/larn/monster.c
1730
if (((sp = malloc(sizeof(struct sphere)))) == NULL)
games/larn/monster.c
566
save = malloc(sizeof(struct isave) * MAXX * MAXY * 2);
games/morse/morse.c
554
tone->data = malloc(tone->len);
games/quiz/quiz.c
129
if ((qp->q_next = malloc(sizeof(QE))) == NULL)
games/quiz/quiz.c
304
if ((m = malloc(strlen(s) + len + 1)) == NULL)
games/random/randomize_fd.c
110
buf = (u_char *)malloc(buflen);
games/random/randomize_fd.c
180
n->cp = (u_char *)malloc(slen + 2);
games/random/randomize_fd.c
49
n = (struct rand_node *)malloc(sizeof(struct rand_node));
games/rogue/machdep.c
446
t = malloc(n);
games/sail/array.c
41
a = malloc(sizeof(*a));
games/sail/array.h
173
a = malloc(sizeof(*a)); \
games/worm/worm.c
46
#define newlink() malloc(sizeof(struct body));
games/worms/worms.c
221
if (!(worm = malloc((size_t)number *
games/worms/worms.c
222
sizeof(struct worm))) || !(mp = malloc((size_t)1024)))
games/worms/worms.c
229
if (!(ip = malloc((size_t)(LI * CO * sizeof(short)))))
games/worms/worms.c
231
if (!(ref = malloc((size_t)(LI * sizeof(short *)))))
games/worms/worms.c
241
if (!(ip = malloc((size_t)(length * sizeof(short)))))
games/worms/worms.c
246
if (!(ip = malloc((size_t)(length * sizeof(short)))))
include/stdlib.h
108
void *malloc(size_t) __malloclike __heedresult __alloc_size(1);
lib/i18n_module/BIG5/citrus_big5.c
206
exclude = (void *)malloc(sizeof(*exclude));
lib/i18n_module/ISO2022/citrus_iso2022.c
260
ei->recommend[i] = malloc(sizeof(_ISO2022Charset));
lib/i18n_module/VIQR/citrus_viqr.c
147
m = malloc(sizeof(*m));
lib/i18n_module/iconv_std/citrus_iconv_std.c
219
sd = malloc(sizeof(*sd));
lib/i18n_module/iconv_std/citrus_iconv_std.c
240
sd = malloc(sizeof(*sd));
lib/i18n_module/iconv_std/citrus_iconv_std.c
275
ss = malloc(sizeof(*ss));
lib/i18n_module/iconv_std/citrus_iconv_std.c
288
ss = malloc(sizeof(*ss));
lib/i18n_module/iconv_std/citrus_iconv_std.c
358
is = malloc(sizeof(*is));
lib/i18n_module/iconv_std/citrus_iconv_std.c
431
sc = malloc(sz);
lib/i18n_module/mapper_646/citrus_mapper_646.c
177
m6 = malloc(sizeof(*m6));
lib/i18n_module/mapper_serial/citrus_mapper_serial.c
137
ml = malloc(sizeof(*ml));
lib/i18n_module/mapper_serial/citrus_mapper_serial.c
171
sr = malloc(sizeof(*sr));
lib/i18n_module/mapper_std/citrus_mapper_std.c
167
rc->rc_src_rowcol = malloc(2 *
lib/i18n_module/mapper_std/citrus_mapper_std.c
214
rc->rc_src_rowcol = malloc(rc->rc_src_rowcol_len *
lib/i18n_module/mapper_std/citrus_mapper_std.c
356
ms = malloc(sizeof(*ms));
lib/i18n_module/mapper_zone/citrus_mapper_zone.c
312
mz = malloc(sizeof(*mz));
lib/libalias/alias_db.c
1068
aux_tcp = malloc(sizeof(struct tcp_dat));
lib/libalias/alias_db.c
2413
server = malloc(sizeof(struct server));
lib/libalias/alias_db.c
2728
fireWallField = malloc(fireWallNumNums);
lib/libalias/alias_db.c
998
link = malloc(sizeof(struct alias_link));
lib/libalias/alias_proxy.c
819
proxy_entry = malloc(sizeof(struct proxy_entry));
lib/libbluetooth/bluetooth.h
108
#define bt_malloc(n) malloc(n)
lib/libc/citrus/citrus_db.c
79
db = malloc(sizeof(*db));
lib/libc/citrus/citrus_db_factory.c
116
de = malloc(sizeof(*de));
lib/libc/citrus/citrus_db_factory.c
157
p = malloc(sizeof(*p));
lib/libc/citrus/citrus_db_factory.c
172
p = malloc(sizeof(*p));
lib/libc/citrus/citrus_db_factory.c
187
p = malloc(sizeof(*p));
lib/libc/citrus/citrus_db_factory.c
74
df = malloc(sizeof(*df));
lib/libc/citrus/citrus_esdb.c
143
esdb->db_charsets = malloc(num_charsets * sizeof(*esdb->db_charsets));
lib/libc/citrus/citrus_esdb.c
285
list = malloc(num * sizeof(char *));
lib/libc/citrus/citrus_iconv.c
138
ci = malloc(sizeof(*ci) + len_convname + 1);
lib/libc/citrus/citrus_iconv.c
161
ci->ci_ops = malloc(sizeof(*ci->ci_ops));
lib/libc/citrus/citrus_iconv.c
319
cv = malloc(sizeof(*cv));
lib/libc/citrus/citrus_lookup.c
278
cl = malloc(sizeof(*cl));
lib/libc/citrus/citrus_lookup_factory.c
85
ptr = malloc(size);
lib/libc/citrus/citrus_mapper.c
214
cm = malloc(sizeof(*cm));
lib/libc/citrus/citrus_mapper.c
237
cm->cm_ops = malloc(sizeof(*cm->cm_ops));
lib/libc/citrus/citrus_mapper.c
255
cm->cm_traits = malloc(sizeof(*cm->cm_traits));
lib/libc/citrus/citrus_mapper.c
95
ma = malloc(sizeof(*ma));
lib/libc/citrus/citrus_pivot_factory.c
171
ptr = malloc(size);
lib/libc/citrus/citrus_pivot_factory.c
185
ptr = malloc(size);
lib/libc/citrus/citrus_pivot_factory.c
68
se = malloc(sizeof(*se));
lib/libc/citrus/citrus_prop.c
252
s = malloc(m);
lib/libc/citrus/citrus_stdenc.c
111
ce->ce_traits = malloc(sizeof(*ce->ce_traits));
lib/libc/citrus/citrus_stdenc.c
64
ce = malloc(sizeof(*ce));
lib/libc/citrus/citrus_stdenc.c
87
ce->ce_ops = (struct _citrus_stdenc_ops *)malloc(sizeof(*ce->ce_ops));
lib/libc/db/hash/hash.c
187
if (!(dbp = (DB *)malloc(sizeof(DB)))) {
lib/libc/db/hash/hash.c
844
if ( (p = malloc(newsize)) ) {
lib/libc/db/hash/hash_bigkey.c
459
if ((hashp->tmp_buf = (char *)malloc(totlen)) == NULL)
lib/libc/db/hash/hash_bigkey.c
525
if ((hashp->tmp_key = (char *)malloc(totlen)) == NULL)
lib/libc/db/hash/hash_page.c
617
if ((ip = (uint32_t *)malloc(hashp->BSIZE)) == NULL)
lib/libc/db/hash/hash_page.c
905
if ((hashp->mapp[ndx] = (uint32_t *)malloc(hashp->BSIZE)) == NULL)
lib/libc/db/recno/rec_put.c
141
(void *)malloc(t->bt_reclen)) == NULL)
lib/libc/db/test/dbtest.c
663
if ((p = (void *)malloc((u_int)sb.st_size)) == NULL)
lib/libc/db/test/dbtest.c
676
if ((p = (void *)malloc(len)) == NULL)
lib/libc/gen/fdevname.c
102
if ((buf = malloc(sizeof fdevname_buf)) == NULL)
lib/libc/gen/fmtmsg.c
135
if ((output = malloc(size)) == NULL)
lib/libc/gen/fts.c
998
if ((p = malloc(len)) == NULL)
lib/libc/gen/getcap.c
209
if ((record = malloc (topreclen + BFRAG)) == NULL) {
lib/libc/gen/getcap.c
223
if ((record = malloc(BFRAG)) == NULL) {
lib/libc/gen/getcap.c
256
cbuf = malloc(clen + 1);
lib/libc/gen/getcap.c
803
if ((mem = malloc(SFRAG)) == NULL) {
lib/libc/gen/getcap.c
86
if ((toprec = malloc (topreclen + 1)) == NULL) {
lib/libc/gen/getcap.c
929
if ((mem = malloc(SFRAG)) == NULL) {
lib/libc/gen/getcwd.c
52
if ((pt = malloc(MAXPATHLEN)) == NULL)
lib/libc/gen/getdevpath.c
207
path = malloc(len + 1);
lib/libc/gen/getgrent.c
1416
st->name = malloc(p - line);
lib/libc/gen/getgrent.c
483
buf = malloc(GRP_STORAGE_INITIAL);
lib/libc/gen/getgrent.c
508
buf = malloc(bufsize);
lib/libc/gen/getgrent.c
687
grp_storage = malloc(GRP_STORAGE_INITIAL);
lib/libc/gen/getgrent.c
702
grp_storage = malloc(grp_storage_size);
lib/libc/gen/getmntinfo.c
55
if ((mntbuf = (struct statfs *)malloc(bufsize)) == NULL)
lib/libc/gen/getmntvinfo.c
60
if ((mntsbuf = (struct statfs *)malloc(bufsize)) == NULL)
lib/libc/gen/getmntvinfo.c
62
if ((mntvbuf = (struct statvfs *)malloc(vbufsize)) == NULL)
lib/libc/gen/getnetgrent.c
201
malloc(strlen(group) + 1);
lib/libc/gen/getnetgrent.c
450
grp = (struct netgrp *)malloc(sizeof (struct netgrp));
lib/libc/gen/getnetgrent.c
473
malloc(len + 1);
lib/libc/gen/getnetgrent.c
572
lp = (struct linelist *)malloc(sizeof (*lp));
lib/libc/gen/getnetgrent.c
574
lp->l_groupname = (char *)malloc(len + 1);
lib/libc/gen/getnetgrent.c
592
linep = (char *)malloc(olen + len + 1);
lib/libc/gen/getpwent.c
1492
copy = malloc(n);
lib/libc/gen/getpwent.c
646
pwd_storage = malloc(PWD_STORAGE_INITIAL);
lib/libc/gen/getpwent.c
661
pwd_storage = malloc(pwd_storage_size);
lib/libc/gen/getttyent.c
230
if ((line = malloc(MALLOCCHUNK)) == NULL)
lib/libc/gen/getvfsent.c
39
_vfslist = malloc(size);
lib/libc/gen/glob.c
786
if ((copy = malloc(len)) != NULL) {
lib/libc/gen/opendir.c
116
(dirp = malloc(sizeof(DIR))) == NULL)
lib/libc/gen/opendir.c
130
dirp->dd_buf = malloc(dirp->dd_len);
lib/libc/gen/popen.c
94
if ((cur = malloc(sizeof(struct pid))) == NULL) {
lib/libc/gen/posix_spawn.c
254
fa = malloc(sizeof(struct __posix_spawn_file_actions));
lib/libc/gen/posix_spawn.c
294
fae = malloc(sizeof(posix_spawn_file_actions_entry_t));
lib/libc/gen/posix_spawn.c
324
fae = malloc(sizeof(posix_spawn_file_actions_entry_t));
lib/libc/gen/posix_spawn.c
347
fae = malloc(sizeof(posix_spawn_file_actions_entry_t));
lib/libc/gen/pwcache.c
290
*pptr = ptr = (UIDC *)malloc(sizeof(UIDC));
lib/libc/gen/pwcache.c
359
*pptr = ptr = (GIDC *)malloc(sizeof(GIDC));
lib/libc/gen/pwcache.c
428
*pptr = ptr = (UIDC *)malloc(sizeof(UIDC));
lib/libc/gen/pwcache.c
492
*pptr = ptr = (GIDC *)malloc(sizeof(GIDC));
lib/libc/gen/scandir.c
75
names = (struct dirent **)malloc(arraysz * sizeof(struct dirent *));
lib/libc/gen/scandir.c
85
p = (struct dirent *)malloc(_DIRENT_DIRSIZ(d));
lib/libc/gen/setmode.c
194
if ((set = malloc((u_int)(sizeof(BITCMD) * setlen))) == NULL)
lib/libc/gen/setproctitle.c
86
buf = malloc(SPT_BUFSIZE);
lib/libc/gen/setproctitle.c
95
obuf = malloc(SPT_BUFSIZE);
lib/libc/gen/stringlist.c
51
sl = malloc(sizeof(StringList));
lib/libc/gen/stringlist.c
57
sl->sl_str = malloc(sl->sl_max * sizeof(char *));
lib/libc/gen/strtofflags.c
101
if ((string = (char *)malloc(nmappings * (longestflaglen + 1))) == NULL)
lib/libc/gen/telldir.c
92
if ((lp = (struct ddloc *)malloc(sizeof(struct ddloc))) == NULL) {
lib/libc/gen/tls.c
133
tcb = malloc(data_size + sizeof(*tcb) + 3 * sizeof(*dtv));
lib/libc/gen/ttyname.c
116
if ((buf = malloc(sizeof ttyname_buf)) == NULL)
lib/libc/gen/utmpx.c
472
if ((ll = malloc(sizeof(*ll))) == NULL)
lib/libc/iconv/iconv.c
223
curkey = (char *)malloc(slashpos - list[i] + 2);
lib/libc/iconv/iconv.c
224
names = (char **)malloc(sz * sizeof(char *));
lib/libc/iconv/iconv.c
233
curitem = (char *)malloc(strlen(slashpos) + 1);
lib/libc/locale/ldpart.c
99
if ((lbuf = malloc(bufsize)) == NULL) {
lib/libc/locale/rune.c
147
data = malloc(sizeof(_RuneLocale) +
lib/libc/locale/wcsftime.c
80
if ((sformat = malloc(sflen + 1)) == NULL)
lib/libc/locale/wcsftime.c
96
if ((dst = malloc(maxsize * MB_CUR_MAX)) == NULL)
lib/libc/locale/wcstod.c
85
if ((buf = malloc(len + 1)) == NULL) {
lib/libc/locale/wcstof.c
69
if ((buf = malloc(len + 1)) == NULL) {
lib/libc/locale/wcstold.c
69
if ((buf = malloc(len + 1)) == NULL) {
lib/libc/net/gai_strerror.c
91
if ((buf = malloc(sizeof(gai_buf))) == NULL)
lib/libc/net/getaddrinfo.c
1242
ai = (struct addrinfo *)malloc(sizeof(struct addrinfo)
lib/libc/net/getaddrinfo.c
1603
sentinel = (struct addrinfo *)malloc(size);
lib/libc/net/getaddrinfo.c
1617
sentinel->ai_canonname = (char *)malloc(size + 1);
lib/libc/net/getaddrinfo.c
1936
if ((addrs = malloc(sizeof(struct addr_ptr) * naddrs)) == NULL)
lib/libc/net/getaddrinfo.c
2000
buf = malloc(sizeof(*buf));
lib/libc/net/getaddrinfo.c
2005
buf2 = malloc(sizeof(*buf2));
lib/libc/net/getaddrinfo.c
2371
buf = malloc(MAXPACKET);
lib/libc/net/getaddrinfo.c
602
if ((aio = malloc(sizeof(*aio) * n)) == NULL)
lib/libc/net/getaddrinfo.c
649
if ((buf = malloc(l)) == NULL)
lib/libc/net/getaddrinfo.c
660
if ((new = malloc(sizeof(*new))) == NULL) {
lib/libc/net/gethostbydns.c
510
if ((buf = malloc(sizeof(*buf))) == NULL) {
lib/libc/net/gethostbydns.c
606
if ((buf = malloc(sizeof(*buf))) == NULL) {
lib/libc/net/getifaddrs.c
116
if ((buf = malloc(needed)) == NULL)
lib/libc/net/getifaddrs.c
192
data = malloc(sizeof(struct ifaddrs) * icnt + dcnt + ncnt);
lib/libc/net/getnetbydns.c
324
if ((buf = malloc(sizeof(*buf))) == NULL) {
lib/libc/net/getnetbydns.c
399
if ((buf = malloc(sizeof(*buf))) == NULL) {
lib/libc/net/getservent.c
1149
st->buffer = malloc(SERVENT_STORAGE_INITIAL);
lib/libc/net/getservent.c
1164
st->buffer = malloc(st->bufsize);
lib/libc/net/hesiod.c
106
ctx->rhs = malloc(strlen(p) + 2);
lib/libc/net/hesiod.c
396
list = malloc((ancount + 1) * sizeof(char *));
lib/libc/net/hesiod.c
422
list[j] = malloc((size_t)len);
lib/libc/net/hesiod.c
85
ctx = malloc(sizeof(struct hesiod_p));
lib/libc/net/if_nameindex.c
110
cp = malloc((ni + 1) * sizeof(struct if_nameindex) + nbytes);
lib/libc/net/name6.c
432
if ((nhp = (struct hostent *)malloc(size)) == NULL) {
lib/libc/net/name6.c
667
if ((aio = malloc(sizeof(*aio) * n)) == NULL)
lib/libc/net/name6.c
735
if ((buf = malloc(l)) == NULL)
lib/libc/net/name6.c
746
if ((new = malloc(sizeof(*new))) == NULL) {
lib/libc/net/nscache.c
104
buffer = (char *)malloc(NSS_CACHE_BUFFER_INITIAL_SIZE);
lib/libc/net/nscache.c
187
buffer = (char *)malloc(NSS_CACHE_BUFFER_INITIAL_SIZE);
lib/libc/net/nscache.c
293
buffer = (char *)malloc(NSS_CACHE_BUFFER_INITIAL_SIZE);
lib/libc/net/nscache.c
358
buffer = (char *)malloc(NSS_CACHE_BUFFER_INITIAL_SIZE);
lib/libc/net/nscache.c
73
cache_data->key = (char *)malloc(NSS_CACHE_KEY_INITIAL_SIZE);
lib/libc/net/nscachedcli.c
218
retval = malloc(sizeof(struct cached_connection_));
lib/libc/nls/msgcat.c
440
if ((catd = malloc(sizeof (*catd))) == NULL) {
lib/libc/nls/msgcat.c
451
if ((np = malloc(sizeof(struct catentry))) != NULL) {
lib/libc/nls/msgcat.c
79
np = malloc(sizeof(struct catentry)); \
lib/libc/resolv/mtctxres.c
80
if ((mt = malloc(sizeof (mtctxres_t))) == NULL) {
lib/libc/resolv/res_debug.c
161
buf = malloc(buflen);
lib/libc/resolv/res_debug.c
246
buf = malloc(buflen += 1024);
lib/libc/resolv/res_findzonecut.c
288
resp = malloc(NS_MAXMSG);
lib/libc/resolv/res_findzonecut.c
415
resp = malloc(NS_MAXMSG);
lib/libc/resolv/res_findzonecut.c
445
resp = malloc(NS_MAXMSG);
lib/libc/resolv/res_findzonecut.c
539
nsrr = malloc(sizeof *nsrr);
lib/libc/resolv/res_findzonecut.c
600
arr = malloc(sizeof *arr);
lib/libc/resolv/res_init.c
217
statp->_u._ext.ext = malloc(sizeof(*statp->_u._ext.ext));
lib/libc/resolv/res_mkupdate.c
1026
slp = (struct valuelist *)malloc(sizeof(struct valuelist));
lib/libc/resolv/res_mkupdate.c
979
slp = (struct valuelist *)malloc(sizeof(struct valuelist));
lib/libc/resolv/res_update.c
101
packet = malloc(NS_MAXMSG);
lib/libc/resolv/res_update.c
130
zptr = malloc(sizeof *zptr);
lib/libc/rpc/clnt_bcast.c
146
bip = (struct broadif *)malloc(sizeof *bip);
lib/libc/rpc/clnt_bcast.c
338
if ((outbuf_pmap = malloc(udpbufsz)) == NULL) {
lib/libc/rpc/clnt_bcast.c
359
inbuf = malloc(maxbufsize);
lib/libc/rpc/clnt_bcast.c
360
outbuf = malloc(maxbufsize);
lib/libc/rpc/clnt_perror.c
63
buf = (char *)malloc(CLNT_PERROR_BUFLEN);
lib/libc/rpc/clnt_simple.c
127
rcp = malloc(sizeof (*rcp));
lib/libc/rpc/clnt_vc.c
249
ct->ct_addr.buf = malloc(raddr->maxlen);
lib/libc/rpc/getnetconfig.c
156
nc_addr = (int *)malloc(sizeof (int));
lib/libc/rpc/getnetconfig.c
192
if ((nc_vars = (struct netconfig_vars *)malloc(sizeof
lib/libc/rpc/getnetconfig.c
271
stringp = (char *) malloc(MAXNETCONFIGLINE);
lib/libc/rpc/getnetconfig.c
293
list = (struct netconfig_list *) malloc(sizeof (struct netconfig_list));
lib/libc/rpc/getnetconfig.c
298
np = (struct netconfig *) malloc(sizeof (struct netconfig));
lib/libc/rpc/getnetconfig.c
437
if ((linep = malloc(MAXNETCONFIGLINE)) == NULL) {
lib/libc/rpc/getnetconfig.c
461
malloc(sizeof (struct netconfig))) == NULL) {
lib/libc/rpc/getnetconfig.c
648
if ((tmp=malloc(MAXNETCONFIGLINE)) == NULL)
lib/libc/rpc/getnetconfig.c
650
if ((p=(struct netconfig *)malloc(sizeof(struct netconfig))) == NULL) {
lib/libc/rpc/getnetconfig.c
671
p->nc_lookups = (char **)malloc((size_t)(p->nc_nlookups+1) * sizeof(char *));
lib/libc/rpc/getnetpath.c
106
if ((np_sessionp->netpath = malloc(strlen(npp)+1)) == NULL)
lib/libc/rpc/getnetpath.c
174
malloc(sizeof (struct netpath_chain));
lib/libc/rpc/getnetpath.c
92
(struct netpath_vars *)malloc(sizeof (struct netpath_vars))) == NULL) {
lib/libc/rpc/getrpcent.c
941
st->buffer = malloc(RPCENT_STORAGE_INITIAL);
lib/libc/rpc/getrpcent.c
956
st->buffer = malloc(st->bufsize);
lib/libc/rpc/key_call.c
313
kcp = (struct key_call_private *)malloc(sizeof (*kcp));
lib/libc/rpc/mt_misc.c
106
malloc(sizeof (struct rpc_createerr));
lib/libc/rpc/rpc_generic.c
305
handle = (struct handle *) malloc(sizeof (struct handle));
lib/libc/rpc/rpc_generic.c
678
ret = (struct netbuf *)malloc(sizeof *ret);
lib/libc/rpc/rpc_generic.c
684
sin = (struct sockaddr_in *)malloc(sizeof *sin);
lib/libc/rpc/rpc_generic.c
701
sin6 = (struct sockaddr_in6 *)malloc(sizeof *sin6);
lib/libc/rpc/rpc_generic.c
718
sun = (struct sockaddr_un *)malloc(sizeof *sun);
lib/libc/rpc/rpc_soc.c
411
((svcaddr = malloc(sizeof(struct netbuf))) == NULL ) ||
lib/libc/rpc/rpc_soc.c
412
((svcaddr->buf = malloc(sizeof(struct sockaddr_un))) == NULL)) {
lib/libc/rpc/rpc_soc.c
483
taddr.addr.buf = malloc(addrlen);
lib/libc/rpc/rpcb_clnt.c
218
malloc(sizeof (struct address_cache));
lib/libc/rpc/rpcb_clnt.c
225
ad_cache->ac_taddr = (struct netbuf *)malloc(sizeof (struct netbuf));
lib/libc/rpc/rpcb_clnt.c
231
ad_cache->ac_taddr->buf = (char *) malloc(taddr->len);
lib/libc/rpc/rpcb_clnt.c
328
addr_to_delete.buf = (char *)malloc(addr->len);
lib/libc/rpc/rpcb_clnt.c
371
*targaddr = malloc(sizeof(sun.sun_path));
lib/libc/rpc/rpcb_clnt.c
809
malloc(sizeof (struct netbuf))) == NULL) ||
lib/libc/rpc/rpcb_clnt.c
811
malloc(remote.len)) == NULL)) {
lib/libc/rpc/rpcdname.c
58
default_domain = (char *)malloc((strlen(temp)+(unsigned)1));
lib/libc/rpc/svc_generic.c
113
l = (struct xlist *)malloc(sizeof (*l));
lib/libc/rpc/svc_simple.c
163
if (((xdrbuf = malloc((unsigned)recvsz)) == NULL) ||
lib/libc/rpc/svc_simple.c
203
pl = malloc(sizeof (struct proglst));
lib/libc/stdio/findfp.c
99
g = (struct glue *)malloc(sizeof(*g) + ALIGNBYTES + n * sizeof(FILE));
lib/libc/stdio/fmemopen.c
172
cookie = malloc(sizeof(*cookie));
lib/libc/stdio/fmemopen.c
177
cookie->head = malloc(size);
lib/libc/stdio/fopencookie.c
60
thunk = malloc(sizeof(*thunk));
lib/libc/stdio/makebuf.c
68
if ((p = malloc(size)) == NULL) {
lib/libc/stdio/open_memstream.c
183
ms = malloc(sizeof(*ms));
lib/libc/stdio/open_wmemstream.c
244
ms = malloc(sizeof(*ms));
lib/libc/stdio/printf-pos.c
629
if ((newtable = malloc(newsize * sizeof(enum typeid))) == NULL)
lib/libc/stdio/printf-pos.c
657
malloc (sizeof (union arg) * (types->tablemax + 1));
lib/libc/stdio/setvbuf.c
105
buf = malloc(size);
lib/libc/stdio/setvbuf.c
97
if ((buf = malloc(size)) == NULL) {
lib/libc/stdio/tempnam.c
53
if (!(name = malloc(MAXPATHLEN)))
lib/libc/stdio/ungetc.c
62
if ((p = malloc((size_t)BUFSIZ)) == NULL)
lib/libc/stdio/vasprintf.c
53
f._bf._base = f.pub._p = malloc(128);
lib/libc/stdio/vfprintf.c
247
if ((convbuf = malloc(nbytes + 1)) == NULL)
lib/libc/stdio/vfwprintf.c
318
convbuf = malloc((insize + 1) * sizeof(*convbuf));
lib/libc/stdio/vswprintf.c
69
f._bf._base = f.pub._p = (unsigned char *)malloc(128);
lib/libc/stdio/vswscanf.c
77
if ((mbstr = malloc(wcslen(str) * MB_CUR_MAX + 1)) == NULL)
lib/libc/stdio/xprintf_str.c
91
if ((convbuf = malloc(nbytes + 1)) == NULL)
lib/libc/stdio/xprintf_vis.c
66
buf = malloc(l * 4 + 1);
lib/libc/stdlib/atexit.c
96
if ((p = (struct atexit *)malloc(sizeof(*p))) == NULL)
lib/libc/stdlib/dmalloc.c
1730
__weak_reference(__malloc, malloc);
lib/libc/stdlib/getenv.c
496
envVars[envNdx].name = malloc(nameLen + sizeof ("=") +
lib/libc/stdlib/hcreate.c
113
htable = malloc(htablesize * sizeof htable[0]);
lib/libc/stdlib/hcreate.c
171
ie = malloc(sizeof *ie);
lib/libc/stdlib/heapsort.c
152
if ((k = malloc(size)) == NULL)
lib/libc/stdlib/merge.c
120
if ((list2 = malloc(nmemb * size + PSIZE)) == NULL)
lib/libc/stdlib/nmalloc.c
2162
__weak_reference(__malloc, malloc);
lib/libc/stdlib/ptsname.c
97
if ((buf = malloc(sizeof ptsname_buf)) == NULL)
lib/libc/stdlib/quick_exit.c
58
fn = malloc(sizeof(struct quick_exit_fn));
lib/libc/stdlib/radixsort.c
110
if ((ta = malloc(n * sizeof(a))) == NULL)
lib/libc/stdlib/realpath.c
69
resolved = malloc(PATH_MAX);
lib/libc/stdlib/recallocarray.c
66
newptr = malloc(newsize);
lib/libc/stdlib/set_constraint_handler_s.c
51
new = malloc(sizeof(constraint_handler_t));
lib/libc/stdlib/tsearch.c
48
q = malloc(sizeof(node_t)); /* T5: key not found */
lib/libc/stdtime/localtime.c
1370
if ((p_tm = (struct tm *)malloc(sizeof(struct tm)))
lib/libc/stdtime/localtime.c
1453
if ((p_tm = (struct tm *)malloc(sizeof(struct tm)))
lib/libc/stdtime/localtime.c
357
fullname = malloc(FILENAME_MAX + 1);
lib/libc/stdtime/localtime.c
398
u = malloc(sizeof(*u));
lib/libc/stdtime/localtime.c
536
ts = malloc(sizeof(*ts));
lib/libc/string/strcoll.c
85
if ((t1 = malloc(sz1 * sizeof (wchar_t))) == NULL)
lib/libc/string/strcoll.c
88
if ((t2 = malloc(sz2 * sizeof (wchar_t))) == NULL)
lib/libc/string/strdup.c
44
if ((copy = malloc(len)) == NULL)
lib/libc/string/strndup.c
45
if ((copy = malloc(len + 1)) == NULL)
lib/libc/string/strsignal.c
71
if ((ebuf = malloc(sizeof(sig_ebuf))) == NULL)
lib/libc/string/strxfrm.c
74
if ((wcs = malloc((slen + 1) * sizeof (wchar_t))) == NULL)
lib/libc/string/wcsdup.c
39
if ((copy = malloc(len * sizeof(wchar_t))) == NULL)
lib/libc/sysvipc/shm.c
190
data = malloc(sizeof(struct shm_data));
lib/libc/sysvipc/shm.c
321
msg = malloc(size);
lib/libc/sysvipc/sysvipc_hash.c
45
hashtable = malloc(sizeof(struct hashtable));
lib/libc/sysvipc/sysvipc_hash.c
50
hashtable->entries = malloc(hashsize * sizeof(struct entries_list));
lib/libc/sysvipc/sysvipc_hash.c
89
struct hashentry *new_entry = malloc(sizeof(struct hashentry));
lib/libc/uuid/uuid_name_lookup.c
216
node = malloc(sizeof(*node));
lib/libc/xdr/xdr_sizeof.c
95
if ((xdrs->x_private = (caddr_t) malloc(len)) == NULL) {
lib/libc/yp/xdryp.c
83
key = (char *)malloc(out.ypresp_all_u.val.key.keydat_len + 1);
lib/libc/yp/xdryp.c
87
val = (char *)malloc(out.ypresp_all_u.val.val.valdat_len + 1);
lib/libc/yp/yplib.c
200
new = malloc(sizeof(struct ypmatch_ent));
lib/libc/yp/yplib.c
209
new->ypc_key.keydat_val = malloc(key->keydat_len);
lib/libc/yp/yplib.c
215
new->ypc_val.valdat_val = malloc(val->valdat_len);
lib/libc/yp/yplib.c
342
ysd = (struct dom_binding *)malloc(sizeof *ysd);
lib/libc/yp/yplib.c
694
*outval = (char *)malloc(*outvallen+1);
lib/libc/yp/yplib.c
724
*outval = (char *)malloc(*outvallen+1);
lib/libc/yp/yplib.c
802
*outkey = (char *)malloc(*outkeylen+1);
lib/libc/yp/yplib.c
806
*outval = (char *)malloc(*outvallen+1);
lib/libc/yp/yplib.c
862
*outkey = (char *)malloc(*outkeylen+1);
lib/libc/yp/yplib.c
866
*outval = (char *)malloc(*outvallen+1);
lib/libcam/camlib.c
352
ccb.cdm.matches = (struct dev_match_result *)malloc(bufsize);
lib/libcam/camlib.c
364
ccb.cdm.patterns = (struct dev_match_pattern *)malloc(
lib/libcam/camlib.c
558
if ((device = (struct cam_device *)malloc(
lib/libcam/camlib.c
765
newdev = malloc(sizeof(struct cam_device));
lib/libcam/camlib.c
82
ccb = (union ccb *)malloc(sizeof(union ccb));
lib/libcompat/4.3/rexec.c
191
tmp = malloc(strlen(tokval) + 1);
lib/libcompat/4.3/rexec.c
210
tmp = malloc(strlen(tokval) + 1);
lib/libcompat/4.3/rexec.c
223
*aacct = malloc((unsigned) strlen(tokval) + 1);
lib/libcuse/cuse_lib.c
389
cdev = malloc(sizeof(*cdev));
lib/libdevattr/devattr.c
104
udev_ctx = malloc(sizeof(struct udev));
lib/libdevattr/devattr.c
173
xml = malloc(sz+2);
lib/libdevattr/devattr_device.c
75
udev_dev = malloc(sizeof(struct udev_device));
lib/libdevattr/devattr_enumerate.c
169
le = malloc(sizeof(struct udev_list_entry));
lib/libdevattr/devattr_enumerate.c
80
udev_enum = malloc(sizeof(struct udev_enumerate));
lib/libdevattr/devattr_monitor.c
79
udev_monitor = malloc(sizeof(struct udev_monitor));
lib/libdevinfo/devinfo.c
220
if ((dd = malloc(sizeof(*dd))) == NULL)
lib/libdevinfo/devinfo.c
305
if ((dm = malloc(sizeof(*dm))) == NULL)
lib/libdevinfo/devinfo.c
336
if ((dr = malloc(sizeof(*dr))) == NULL)
lib/libdevstat/devstat.c
267
dinfo->mem_ptr = (u_int8_t *)malloc(dssize);
lib/libdevstat/devstat.c
443
*dev_select = (struct device_selection *)malloc(numdevs *
lib/libdevstat/devstat.c
493
old_dev_select = (struct device_selection *)malloc(
lib/libdevstat/devstat.c
917
*matches = (struct devstat_match *)malloc(
lib/libdm/dm_task.c
145
if ((dmt = malloc(sizeof(*dmt))) == NULL)
lib/libdm/dm_task.c
590
if ((dmt->data_buffer = malloc(sizeof(struct dm_deps) +
lib/libdm/dm_task.c
629
if ((dmt->data_buffer = malloc(sizeof(struct dm_versions) * count))
lib/libdm/dm_task.c
678
if ((dmt->data_buffer = malloc(sizeof(struct dm_names) * count))
lib/libdmsg/msg.c
2231
state = malloc(sizeof(*state));
lib/libdmsg/msg.c
297
state = malloc(sizeof(*state));
lib/libdmsg/msg.c
334
msg = malloc(offsetof(struct dmsg_msg, any.head) + hbytes);
lib/libdmsg/msg.c
349
msg->aux_data = malloc(aligned_size);
lib/libdmsg/subs.c
46
ptr = malloc(bytes);
lib/libefivar/efivar-dp-xlate.c
199
mnt = malloc(mntlen);
lib/libefivar/efivar-dp-xlate.c
505
out = malloc(8192);
lib/libefivar/efivar.c
232
buf = malloc(buflen + sizeof(efi_char));
lib/libefivar/libefivar.c
134
*nmp = malloc(sz);
lib/libefivar/libefivar.c
88
cp = *name = malloc(sz);
lib/libefivar/uefi-dplib.h
502
#define AllocatePool(x) malloc(x)
lib/libefivar/uefi-dplib.h
559
rv = malloc(l);
lib/libevtr/evtr.c
1340
if (!(evtr = malloc(sizeof(*evtr)))) {
lib/libevtr/evtr.c
1479
if (!(fmt = malloc(sizeof(*fmt)))) {
lib/libevtr/evtr.c
1489
if (!(subsys = malloc(evh->subsys_len))) {
lib/libevtr/evtr.c
1500
if (!(fmtstr = malloc(evh->fmt_len + 1))) {
lib/libevtr/evtr.c
1713
evtr->cpus = malloc(ncpus * sizeof(struct cpu));
lib/libevtr/evtr.c
1903
if (!(q = malloc(sizeof(*q)))) {
lib/libevtr/evtr.c
1907
if (!(q->buf = malloc(q->bufsize))) {
lib/libevtr/evtr.c
286
if (!(cb = malloc(sizeof(*cb)))) {
lib/libevtr/evtr.c
377
if (!(res = malloc(sizeof(*res)))) {
lib/libevtr/evtr.c
486
sid = malloc(sizeof(*sid)); \
lib/libevtr/evtr.c
552
if (!(n = malloc(sizeof(*n)))) {
lib/libevtr/evtr.c
583
if (!(ent = malloc(sizeof(*ent)))) {
lib/libevtr/evtr.c
832
if (!(td = malloc(sizeof(*td)))) {
lib/libevtr/ktrfmt.tab.c
435
&& ! ((defined YYMALLOC || defined malloc) \
lib/libevtr/ktrfmt.tab.c
443
# define YYMALLOC malloc
lib/libevtr/ktrfmt.tab.c
444
# if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
lib/libevtr/ktrfmt.tab.c
446
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
lib/libevtr/ktrfmt.yy.c
1868
return (void *) malloc( size );
lib/libexecinfo/private_libelf.h
1039
if ((e = malloc(sizeof(*e))) == NULL) {
lib/libexecinfo/private_libelf.h
2791
if ((buf = malloc(bufsz)) == NULL)
lib/libexecinfo/private_libelf.h
2934
if ((m = malloc(fsize)) == NULL) {
lib/libexecinfo/private_libelf.h
3520
if ((d->d_data.d_buf = malloc(msz * count)) == NULL) {
lib/libfetch/common.c
1425
if ((conn->buf = malloc(MIN_BUF_SIZE)) == NULL) {
lib/libfetch/common.c
869
host = (char *)malloc(len + 1);
lib/libfetch/fetch.c
449
if ((doc = malloc(strlen(p) * 3 + 1)) == NULL) {
lib/libfetch/ftp.c
605
if ((io = malloc(sizeof(*io))) == NULL)
lib/libfetch/http.c
758
char *key = malloc(strlen(cp) + 1);
lib/libfetch/http.c
759
char *value = malloc(strlen(cp) + 1);
lib/libfetch/http.c
760
char *buf = malloc(strlen(cp) + 1);
lib/libfetch/http.c
778
malloc(sizeof(http_auth_challenge_t));
lib/libfetch/http.c
982
if ((str = malloc(((l + 2) / 3) * 4 + 1)) == NULL)
lib/libftpio/ftpio.c
493
ftp = (FTP_t)malloc(sizeof *ftp);
lib/libipfw3/basic/ipfw3_basic.c
184
buf = malloc(s1 - s + 1);
lib/libkcore/kcore.c
74
kc = malloc(sizeof(*kc));
lib/libkcore/kcore_file.c
79
*files = malloc(maxfiles * sizeof(struct kinfo_file));
lib/libkcore/kcore_proc.c
66
*procs = malloc(sizeof(struct kinfo_proc) * nlen);
lib/libkcore/kcore_sched.c
81
if ((percpu = malloc(len)) == NULL) {
lib/libkiconv/kiconv_sysctl.c
48
drivers = malloc(size);
lib/libkiconv/kiconv_sysctl.c
73
csi = malloc(size);
lib/libkiconv/xlat16_iconv.c
106
if ((data = malloc(idxsize + xt.size)) != NULL) {
lib/libkiconv/xlat16_iconv.c
171
if ((xt.data = malloc(0x200 * 0x80 * sizeof(uint32_t))) == NULL)
lib/libkinfo/kinfo_file.c
58
if ((buf = malloc(new_len)) == NULL)
lib/libkinfo/kinfo_net.c
58
if ((percpu = malloc(len)) == NULL) {
lib/libkinfo/kinfo_sched.c
61
if ((percpu = malloc(len)) == NULL) {
lib/libkvm/kvm.c
265
if ((kd = malloc(sizeof(*kd))) == NULL) {
lib/libkvm/kvm.c
280
if ((kd = malloc(sizeof(*kd))) == NULL) {
lib/libkvm/kvm.c
440
buf = malloc(len);
lib/libkvm/kvm_file.c
124
malloc(fd_nfiles * sizeof(struct fdnode));
lib/libkvm/kvm_file.c
218
kproc = malloc(kproc_len);
lib/libkvm/kvm_file.c
98
fd_files = malloc(fd_nfiles * sizeof(struct fdnode));
lib/libkvm/kvm_getswapinfo.c
434
xswbuf = malloc(bytes);
lib/libkvm/kvm_minidump_x86_64.c
83
hpte = malloc(sizeof(*hpte));
lib/libkvm/kvm_proc.c
853
buf = malloc(buflen);
lib/libkvm/kvm_proc.c
857
bufp = malloc(sizeof(char *) * argc);
lib/libldns/ldns/util.h
51
#define LDNS_XMALLOC(type, count) ((type *) malloc((count) * sizeof(type)))
lib/libnetgraph/msg.c
120
if ((ascii = malloc(sizeof(struct ng_mesg)
lib/libnetgraph/msg.c
190
if ((buf = malloc(sizeof(*msg) + arglen)) == NULL) {
lib/libnetgraph/msg.c
287
if ((buf = malloc(bufSize)) == NULL)
lib/libnetgraph7/msg.c
117
if ((ascii = malloc(sizeof(struct ng_mesg)
lib/libnetgraph7/msg.c
197
if ((buf = malloc(sizeof(*msg) + arglen)) == NULL) {
lib/libnetgraph7/msg.c
311
(*rep = malloc(len)) == NULL)
lib/libnetgraph7/msg.c
330
if ((buf = malloc(bufSize)) == NULL)
lib/libnetgraph7/msg.c
374
(*reply = malloc(len)) == NULL)
lib/libnetgraph7/sock.c
256
(*buf = malloc(len)) == NULL)
lib/libnvmm/libnvmm.c
111
area = malloc(sizeof(*area));
lib/libnvmm/libnvmm.c
296
vcpu->exit = malloc(sizeof(*vcpu->exit));
lib/libpam/modules/pam_nologin/pam_nologin.c
109
mtmp = malloc(st.st_size + 1);
lib/libposix1e/acl_init.c
50
acl = (struct acl *) malloc(sizeof(struct acl));
lib/librpcsvc/xcrypt.c
100
if ((buf = malloc((unsigned)len)) == NULL)
lib/librpcsvc/xcrypt.c
68
if ((buf = malloc((unsigned)len)) == NULL)
lib/libsdp/session.c
127
if ((ss->req = malloc((size_t)ss->omtu)) == NULL) {
lib/libsdp/session.c
138
if ((ss->rsp = malloc((size_t)ss->imtu)) == NULL) {
lib/libsdp/session.c
178
if ((ss->req = malloc((size_t)ss->omtu)) == NULL) {
lib/libsdp/session.c
184
if ((ss->rsp = malloc((size_t)ss->imtu)) == NULL) {
lib/libssh/openbsd-compat/bsd-misc.c
326
cp = malloc(len);
lib/libssh/openbsd-compat/getrrsetbyname-ldns.c
136
if ((rrset->rri_name = malloc(len)) == NULL) {
lib/libssh/openbsd-compat/getrrsetbyname-ldns.c
221
rdata->rdi_data = malloc(rdata->rdi_length);
lib/libssh/openbsd-compat/glob.c
862
malloc(sizeof(**statv))) == NULL)
lib/libssh/openbsd-compat/glob.c
874
if ((copy = malloc(len)) != NULL) {
lib/libtcplay/safe_mem.c
63
if ((mem = malloc(alloc_sz)) == NULL)
lib/libtcplay/tcplay.c
1767
if ((uu_temp = malloc(1024)) == NULL) {
lib/libtcplay/tcplay.c
1789
if ((uu = malloc(1024)) == NULL) {
lib/libtelnet/sra.c
120
user = malloc(SMALL_LEN);
lib/libtelnet/sra.c
121
xuser = malloc(XSMALL_LEN);
lib/libtelnet/sra.c
122
pass = malloc(SMALL_LEN);
lib/libtelnet/sra.c
123
xpass = malloc(XSMALL_LEN);
lib/libtelnet/sra.c
489
struct pam_response *reply = malloc(sizeof(*reply) * num_msg);
lib/libthread_db/libthread_xu.c
141
ta = malloc(sizeof(td_thragent_t));
lib/libthread_db/libthread_xu.c
302
keytable = malloc(ta->thread_max_keys * ta->thread_size_key);
lib/libu4bhid/descr.c
105
data = malloc(ugd.ugd_actlen);
lib/libu4bhid/descr.c
144
r = malloc(sizeof(*r) + size);
lib/libu4bhid/parse.c
156
s = malloc(sizeof *s);
lib/libu4bhid/usage.c
128
pages = malloc(npagesmax *
lib/libu4bhid/usage.c
145
malloc(curpage->pagesizemax *
lib/libusb/libusb01.c
490
ptr = malloc(a + b + c + d);
lib/libusb/libusb01.c
560
dev->config = malloc(size);
lib/libusb/libusb01.c
911
udev = malloc(sizeof(*udev));
lib/libusb/libusb10.c
120
ctx = malloc(sizeof(*ctx));
lib/libusb/libusb10.c
268
*list = malloc((i + 1) * sizeof(void *));
lib/libusb/libusb10.c
277
dev = malloc(sizeof(*dev));
lib/libusb/libusb10.c
935
sxfer = malloc(len);
lib/libusb/libusb10_desc.c
164
pconfd = malloc(nextra);
lib/libusb/libusb10_desc.c
381
ptr = malloc(sizeof(*ptr));
lib/libusb/libusb10_desc.c
441
ptr = malloc(sizeof(*ptr) + sizeof(*dcap_20) +
lib/libusb/libusb10_hotplug.c
188
handle = malloc(sizeof(*handle));
lib/libusb/libusb20.c
1191
pbe = malloc(sizeof(*pbe));
lib/libusb/libusb20.c
189
xfer->pLength = malloc(size);
lib/libusb/libusb20.c
196
xfer->ppBuffer = malloc(size);
lib/libusb/libusb20.c
658
pdev->pTransfer = malloc(size);
lib/libusb/libusb20.c
957
pdev = malloc(sizeof(*pdev));
lib/libusb/libusb20_desc.c
126
lub_config = malloc(size);
lib/libusb/libusb20_ugen20.c
345
pfse = malloc(size);
lib/libusb/libusb20_ugen20.c
484
ptr = malloc(len);
lib/libutil/efun.c
104
void *p = malloc(n);
lib/libutil/gr_util.c
415
if ((line = p = malloc(line_size)) == NULL)
lib/libutil/gr_util.c
452
if ((mem = malloc(len)) == NULL)
lib/libutil/login_cap.c
192
if ((lc = malloc(sizeof(login_cap_t))) != NULL) {
lib/libutil/login_class.c
154
np = malloc(strlen(var) + (dollas * nlen)
lib/libutil/pidfile.c
102
pfh = malloc(sizeof(*pfh));
lib/libutil/property.c
48
if ((n = (properties)malloc(sizeof(struct _property))) == NULL)
lib/libutil/pw_util.c
607
if ((npw = malloc((size_t)len)) == NULL)
lib/libvgl/bitmap.c
301
p = malloc(width);
lib/libvgl/bitmap.c
338
object = (VGLBitmap *)malloc(sizeof(*object));
lib/libvgl/bitmap.c
363
object->Bitmap = (byte *)malloc(object->VXsize*object->VYsize);
lib/libvgl/main.c
137
VGLDisplay = (VGLBitmap *)malloc(sizeof(VGLBitmap));
lib/libvgl/main.c
207
VGLBuf = malloc(VGLBufSize);
lib/libvgl/text.c
50
if ((VGLTextFont=(VGLText*)malloc(sizeof(VGLText))) == NULL)
lib/libvgl/text.c
64
(byte*)malloc(256*((VGLTextFont->Width + 7)/8)*VGLTextFont->Height);
lib/libypclnt/ypclnt_connect.c
56
if ((ypclnt->domain = malloc(MAXHOSTNAMELEN)) == NULL) {
libexec/bootpd/bootpd.c
212
pktbuf = malloc(MAX_MSG_SIZE);
libexec/bootpd/bootpgw/bootpgw.c
182
pktbuf = malloc(MAX_MSG_SIZE);
libexec/bootpd/hash.c
218
temp = (hash_member *) malloc(sizeof(hash_member));
libexec/bootpd/hash.c
83
hashtblptr = (hash_tbl *) malloc(totalsize);
libexec/bootpd/readfile.c
1987
retvalue = malloc(nbytes);
libexec/bootpd/tools/bootpef/bootpef.c
139
buffer = (byte *) malloc(BUFFERSIZE);
libexec/bootpd/tools/bootptest/bootptest.c
170
sndbuf = malloc(BUFLEN);
libexec/bootpd/tools/bootptest/bootptest.c
171
rcvbuf = malloc(BUFLEN);
libexec/dma/base64.c
61
p = s = (char *) malloc(size * 4 / 3 + 4);
libexec/dma/conf.c
225
unsigned char *fingerprint = malloc(SHA256_DIGEST_LENGTH);
libexec/dma/dns.c
154
ans = malloc(anssz);
libexec/dma/spool.c
109
t = malloc(sizeof(*t));
libexec/fingerd/fingerd.c
118
if ((t = malloc(sizeof(line) + 1)) == NULL)
libexec/ftpd/ftpcmd.y
1530
p = malloc(strlen(s) + 1);
libexec/ftpd/ftpd.c
1070
if ((mp = malloc(len + 1)) == NULL)
libexec/ftpd/ftpd.c
2108
if ((buf = malloc(blksize)) == NULL) {
libexec/ftpd/ftpd.c
3319
if ((s2 = malloc(p - s + n + 1)) == NULL)
libexec/ftpd/ftpd.c
3356
socks = malloc((maxs + 1) * sizeof(int));
libexec/ftpd/ftpd.c
611
if ((hostname = malloc(MAXHOSTNAMELEN)) == NULL)
libexec/ftpd/ftpd.c
664
if ((hostname = malloc(MAXHOSTNAMELEN)) == NULL)
libexec/ftpd/ftpd.c
670
if ((hrp = malloc(sizeof(struct ftphost))) == NULL)
libexec/ftpd/ftpd.c
702
if ((mp = malloc(len + 1)) == NULL)
libexec/ftpd/ftpd.c
773
if ((hrp = malloc(sizeof(struct ftphost))) == NULL)
libexec/ftpd/ftpd.c
914
char *new = malloc(strlen(s) + 1);
libexec/ftpd/popen.c
78
if ((pids = malloc(fds * sizeof(int))) == NULL)
libexec/getty/chat.c
143
if ((l=strlen(str)) > 0 && (tmp=malloc(l + 1)) != NULL &&
libexec/getty/chat.c
144
(res=malloc((l / 2 + 1) * sizeof(char *))) != NULL) {
libexec/getty/chat.c
329
if ((got = malloc(len + 1)) == NULL)
libexec/getty/subr.c
87
if ((p = malloc(l)) != NULL) {
libexec/mknetid/hash.c
142
tmp = (struct grouplist *)malloc(sizeof(struct grouplist));
libexec/mknetid/hash.c
158
new = (struct member_entry *)malloc(sizeof(struct member_entry));
libexec/rbootd/bpf.c
152
BpfPkt = (u_int8_t *)malloc(BpfLen);
libexec/rbootd/utils.c
269
if ((ctmp = (CLIENT *) malloc(sizeof(CLIENT))) == NULL) {
libexec/rbootd/utils.c
326
if ((stmp = (char *)malloc((unsigned) (strlen(str)+1))) == NULL) {
libexec/rbootd/utils.c
361
if ((rtmp = (RMPCONN *) malloc(sizeof(RMPCONN))) == NULL) {
libexec/revnetgroup/hash.c
151
new = (struct group_entry *)malloc(sizeof(struct group_entry));
libexec/revnetgroup/hash.c
182
tmp = (struct grouplist *)malloc(sizeof(struct grouplist));
libexec/revnetgroup/hash.c
197
new = (struct member_entry *)malloc(sizeof(struct member_entry));
libexec/revnetgroup/parse_netgroup.c
106
malloc(strlen(group) + 1);
libexec/revnetgroup/parse_netgroup.c
209
grp = (struct netgrp *)malloc(sizeof (struct netgrp));
libexec/revnetgroup/parse_netgroup.c
232
malloc(len + 1);
libexec/revnetgroup/parse_netgroup.c
306
lp = (struct linelist *)malloc(sizeof (*lp));
libexec/revnetgroup/parse_netgroup.c
308
lp->l_groupname = (char *)malloc(len + 1);
libexec/revnetgroup/parse_netgroup.c
325
linep = (char *)malloc(olen + len + 1);
libexec/rpc.rquotad/rquotad.c
200
fs_current = (struct fs_stat *) malloc(sizeof(struct fs_stat));
libexec/rpc.rquotad/rquotad.c
203
fs_current->fs_file = malloc(sizeof(char) * (strlen(fs->fs_file) + 1));
libexec/rpc.rquotad/rquotad.c
206
fs_current->qfpathname = malloc(sizeof(char) * (strlen(qfpathname) + 1));
libexec/rpc.rstatd/rstat_proc.c
300
stats.dinfo = (struct devinfo *)malloc(sizeof(struct devinfo));
libexec/rpc.rstatd/rstat_proc.c
344
stats.dinfo = (struct devinfo *)malloc(sizeof(struct devinfo));
libexec/rtld-elf/malloc.c
227
if ((p = malloc(size)) != NULL)
libexec/rtld-elf/malloc.c
329
return (malloc(nbytes));
libexec/rtld-elf/malloc.c
376
if ((res = malloc(nbytes)) == NULL)
libexec/rtld-elf/map_object.c
298
obj->phdr = malloc(phsize);
libexec/rtld-elf/rtld.c
4481
tcb = malloc(data_size + sizeof(*tcb));
libexec/rtld-elf/rtld.c
4485
dtv = malloc(dtv_size);
libexec/rtld-elf/rtld.c
4568
p = malloc(obj->tlssize);
libexec/rtld-elf/rtld.c
4668
entry = malloc(sizeof(Name_Entry) + len);
libexec/rtld-elf/xmalloc.c
51
void *p = malloc(size);
libexec/talkd/announce.c
118
vis_user = malloc(strlen(request->l_name) * 4 + 1);
libexec/talkd/table.c
156
ptr = (TABLE_ENTRY *)malloc(sizeof(TABLE_ENTRY));
libexec/telnetd/slc.c
447
def_slcbuf = (unsigned char *)malloc((unsigned)len);
libexec/telnetd/sys_term.c
1220
argv = (char **)malloc(sizeof(*argv) * 12);
libexec/telnetd/sys_term.c
1274
if ((new_environ = malloc(count * sizeof(char *))) == NULL) {
libexec/utmp_update/utmp_update.c
100
if ((utx = malloc(len+1)) == NULL)
sbin/camcontrol/camcontrol.c
1173
matchccb.cdm.matches=(struct dev_match_result *)malloc(bufsize);
sbin/camcontrol/camcontrol.c
1184
matchccb.cdm.patterns = (struct dev_match_pattern *)malloc(
sbin/camcontrol/camcontrol.c
1422
defect_list = malloc(dlist_length);
sbin/camcontrol/camcontrol.c
1902
data_ptr = (u_int8_t *)malloc(data_bytes);
sbin/camcontrol/camcontrol.c
1929
data_ptr = (u_int8_t *)malloc(data_bytes);
sbin/camcontrol/camcontrol.c
3334
lundata = malloc(alloc_len);
sbin/camcontrol/camcontrol.c
374
ccb.cdm.matches = (struct dev_match_result *)malloc(bufsize);
sbin/camcontrol/camcontrol.c
721
inq_buf = (struct scsi_inquiry_data *)malloc(
sbin/camcontrol/camcontrol.c
838
malloc(sizeof(*serial_buf));
sbin/camcontrol/modeedit.c
140
if ((newentry = malloc(sizeof(struct editentry))) == NULL ||
sbin/camcontrol/modeedit.c
280
if ((cval = malloc(dest->size + 1)) == NULL)
sbin/camcontrol/modeedit.c
325
if ((newentry = malloc(sizeof(struct pagename))) == NULL ||
sbin/camcontrol/modeedit.c
651
if ((buffer = malloc(length + 1)) == NULL)
sbin/camcontrol/modeedit.c
755
commandline = malloc(strlen(editor) + strlen(edit_path) + 2);
sbin/camcontrol/util.c
126
p = malloc(count + 1);
sbin/ccdconfig/ccdconfig.c
269
disks = malloc(argc * sizeof(char *));
sbin/ccdconfig/ccdconfig.c
502
if ((cs = malloc(readsize)) == NULL) {
sbin/ccdconfig/ccdconfig.c
579
if ((cip = malloc(readsize)) == NULL) {
sbin/cryptdisks/safe_mem.c
63
if ((mem = malloc(alloc_sz)) == NULL)
sbin/devattr/devattr.c
109
ent = malloc(sizeof(struct sl_entry));
sbin/dhclient/bpf.c
224
ifi->rbuf = malloc(ifi->rbuf_max);
sbin/dhclient/clparse.c
407
lease = malloc(sizeof(struct client_lease));
sbin/dhclient/clparse.c
712
options[code].data = malloc(hunkix + nul_term);
sbin/dhclient/clparse.c
734
list = malloc(sizeof(struct iaddrlist));
sbin/dhclient/dhclient.c
1831
client->scriptEnv[i] = malloc(strlen(prefix) + strlen(name) + 1 +
sbin/dhclient/dhclient.c
884
lease = malloc(sizeof(struct client_lease));
sbin/dhclient/dhclient.c
915
lease->server_name = malloc(DHCP_SNAME_LEN + 1);
sbin/dhclient/dhclient.c
936
lease->filename = malloc(DHCP_FILE_LEN + 1);
sbin/dhclient/dispatch.c
90
if ((tif = malloc(len)) == NULL)
sbin/dhclient/privsep.c
29
if ((buf->buf = malloc(len)) == NULL) {
sbin/disklabel32/disklabel.c
614
bootbuf = (char *)malloc((size_t)bootsize);
sbin/disklabel64/disklabel64.c
585
boot1buf = malloc(rsize);
sbin/disklabel64/disklabel64.c
600
boot2buf = malloc(boot2size);
sbin/dmesg/dmesg.c
131
if ((bp = malloc(buflen)) == NULL)
sbin/dmesg/dmesg.c
154
bp = malloc(INCRBUFSIZE);
sbin/dump/main.c
622
if ((*argvp = nargv = malloc((argc + 1) * sizeof(char *))) == NULL ||
sbin/dump/main.c
623
(p = flagsp = malloc(strlen(ap) + 2)) == NULL)
sbin/dump/main.c
644
if ((nargv[0] = malloc(strlen(*argv) + 2 + 1)) == NULL)
sbin/dump/optr.c
269
new = (struct fstab *)malloc(sizeof (*fs));
sbin/dump/optr.c
304
if ((pf = (struct pfstab *)malloc(sizeof (*pf))) == NULL)
sbin/dump/tape.c
141
malloc((unsigned)(reqsiz + writesize + pgoff + TP_BSIZE));
sbin/dumpon/dumpon.c
137
if ((stab = malloc(sizeof(*stab))) == NULL)
sbin/fdisk/fdisk.c
237
if ((mboot.bootinst = malloc(MAX_SEC_SIZE)) == NULL)
sbin/fdisk/fdisk.c
515
if ((mboot.bootinst = malloc(mboot.bootinst_size)) == NULL) {
sbin/fdisk/fdisk.c
893
if ((mboot.bootinst = malloc(mboot.bootinst_size)) == NULL) {
sbin/ffsinfo/ffsinfo.c
210
special=(char *)malloc(len);
sbin/fsck/inode.c
350
if ((inodebuf = (struct ufs1_dinode *)malloc((unsigned)inobufsize)) == NULL)
sbin/fsck/memzone.c
62
chunk = malloc(sizeof(*chunk));
sbin/fsck/pass1.c
290
zlnp = (struct zlncnt *)malloc(sizeof *zlnp);
sbin/fsck/pass1.c
391
new = (struct dups *)malloc(sizeof(struct dups));
sbin/fsck/preen.c
212
if ((*dkp = (struct disk *)malloc(sizeof(struct disk))) == NULL) {
sbin/fsck/preen.c
217
if ((dk->name = malloc(len + 1)) == NULL) {
sbin/fsck/preen.c
241
if ((*ppt = (struct part *)malloc(sizeof(struct part))) == NULL) {
sbin/fsck/preen.c
246
if ((pt->name = malloc(strlen(name) + 1)) == NULL) {
sbin/fsck/preen.c
251
if ((pt->fsname = malloc(strlen(fsname) + 1)) == NULL) {
sbin/fsck/setup.c
118
sblk.b_un.b_buf = malloc(SBSIZE);
sbin/fsck/setup.c
119
asblk.b_un.b_buf = malloc(SBSIZE);
sbin/fsck/utilities.c
144
bufp = malloc((unsigned int)sblock.fs_bsize);
sbin/fsck/utilities.c
154
bp = (struct bufarea *)malloc(sizeof(struct bufarea));
sbin/fsck/utilities.c
155
bufp = malloc((unsigned int)sblock.fs_bsize);
sbin/fsck_hammer2/test.c
1075
char *p = malloc(HAMMER2_INODE_MAXNAME + 1);
sbin/fsck_msdosfs/dir.c
108
if (!(de = malloc(sizeof(*de))))
sbin/fsck_msdosfs/dir.c
1105
lfbuf = malloc(boot->ClusterSize);
sbin/fsck_msdosfs/dir.c
133
if (!(dt = malloc(sizeof(*dt))))
sbin/fsck_msdosfs/dir.c
226
if ((buffer = malloc(len = MAX(rootdir_size, cluster_size))) == NULL) {
sbin/fsck_msdosfs/dir.c
231
if ((delbuf = malloc(len = cluster_size)) == NULL) {
sbin/fsck_msdosfs/dir.c
500
buf = malloc(boot->bpbBytesPerSec);
sbin/fsck_msdosfs/fat.c
574
buffer = malloc(len = boot->bpbBytesPerSec);
sbin/fsck_msdosfs/fat.c
656
fat->fatbuf = malloc(readsize);
sbin/fsdb/fsdbutil.c
259
bufp = malloc((unsigned int)sblock.fs_bsize);
sbin/fsid/fsid.c
79
fsid = malloc(sizeof(struct fsid_entry));
sbin/gpt/gpt.c
331
buf = malloc(count);
sbin/gpt/gpt.c
748
pfx = malloc(strlen(prg) + strlen(cmd) + 2);
sbin/gpt/label.c
157
name = malloc(maxlen);
sbin/gpt/map.c
41
m = malloc(sizeof(*m));
sbin/growfs/growfs.c
1238
bp=(struct gfs_bpp *)malloc(((dupper-odupper)/sblock.fs_frag+2)*
sbin/growfs/growfs.c
1973
special=(char *)malloc(len);
sbin/hammer/cmd_cleanup.c
1272
av = malloc(sizeof(char *) * nmax);
sbin/hammer/cmd_cleanup.c
221
didpfs = malloc(sizeof(*didpfs));
sbin/hammer/cmd_dedup.c
816
char *buf = malloc(DEDUP_BUF);
sbin/hammer/cmd_dedup.c
871
char *buf = malloc(DEDUP_BUF);
sbin/hammer/cmd_mirror.c
1447
mrec = malloc(bytes);
sbin/hammer/cmd_mirror.c
530
*histogram_ary = malloc(sizeof(struct histogram) *
sbin/hammer/cmd_mirror.c
537
tid_bytes = malloc(sizeof(*tid_bytes) * (HIST_COUNT + 2));
sbin/hammer/cmd_mirror.c
766
char *buf = malloc(SERIALBUF_SIZE);
sbin/hammer/cmd_mirror.c
955
char *buf = malloc(SERIALBUF_SIZE);
sbin/hammer/cmd_mirror.c
96
char *buf = malloc(SERIALBUF_SIZE);
sbin/hammer/cmd_pfs.c
54
pfs->ondisk = malloc(sizeof(*pfs->ondisk));
sbin/hammer/cmd_recover.c
552
name = malloc(nlen + 1);
sbin/hammer/cmd_recover.c
636
dict = malloc(sizeof(*dict));
sbin/hammer/cmd_recover.c
680
info.base = malloc(info.len);
sbin/hammer/cmd_snapshot.c
357
softlink_fmt = malloc(strlen(softlink_dir) + 1 + 1 +
sbin/hammer/cmd_snapshot.c
423
to = malloc(sz);
sbin/hammer/cmd_snapshot.c
647
res = malloc(ptr - path + 1);
sbin/hammer/cmd_softprune.c
270
linkbuf = malloc(MAXPATHLEN);
sbin/hammer/cmd_softprune.c
449
scan = malloc(sizeof(*scan));
sbin/hammer/cmd_softprune.c
456
scan->prune.elms = malloc(sizeof(struct hammer_ioc_prune_elm) *
sbin/hammer/misc.c
122
ioc.vols = malloc(ioc.nvols * sizeof(*ioc.vols));
sbin/hammer/misc.c
204
p = malloc(HAMMER_LAYER1_BYTES * newsiz);
sbin/hammer2/cmd_debug.c
341
info = malloc(sizeof(*info));
sbin/hammer2/cmd_debug.c
68
info = malloc(sizeof(*info));
sbin/hammer2/cmd_recover.c
629
entry = malloc(sizeof(*entry));
sbin/hammer2/cmd_recover.c
633
entry->filename = malloc(flen + 1);
sbin/hammer2/cmd_recover.c
668
topo = malloc(sizeof(*topo));
sbin/hammer2/cmd_recover.c
697
scan = malloc(sizeof(*scan));
sbin/hammer2/cmd_recover.c
727
scan = malloc(sizeof(*scan));
sbin/hammer2/cmd_recover.c
829
scan = malloc(sizeof(*scan));
sbin/hammer2/cmd_recover.c
880
scan = malloc(sizeof(*scan));
sbin/hammer2/cmd_recover.c
947
neg = malloc(sizeof(*neg));
sbin/hammer2/cmd_rsa.c
187
data_in = malloc(blksize);
sbin/hammer2/cmd_rsa.c
188
data_out = malloc(blksize);
sbin/hammer2/cmd_rsa.c
321
data_in = malloc(blksize);
sbin/hammer2/cmd_rsa.c
322
data_out = malloc(blksize);
sbin/hammer2/cmd_service.c
269
info = malloc(sizeof(*info));
sbin/hammer2/cmd_service.c
342
conf = malloc(sizeof(*conf) * HAMMER2_COPYID_COUNT);
sbin/hammer2/cmd_service.c
449
info = malloc(sizeof(*info));
sbin/hammer2/cmd_service.c
614
ac = malloc(sizeof(*ac));
sbin/hammer2/cmd_service.c
718
info = malloc(sizeof(*info));
sbin/hammer2/cmd_service.c
763
buf = malloc(n + 1);
sbin/hammer2/cmd_service.c
833
info = malloc(sizeof(*info));
sbin/hammer2/cmd_service.c
908
dc = malloc(sizeof(*dc));
sbin/hammer2/cmd_service.c
914
info = malloc(sizeof(*info));
sbin/hammer2/cmd_service.c
974
info = malloc(sizeof(*info));
sbin/hammer2/lz4/hammer2_lz4.c
330
return malloc(HASHTABLESIZE);
sbin/hammer2/subs.c
95
*strp = malloc(64);
sbin/hammer2/zlib/hammer2_zlib_deflate.c
234
s = (deflate_state *) malloc(sizeof(*s));
sbin/hammer2/zlib/hammer2_zlib_deflate.c
249
s->window = (Bytef *) malloc((s->w_size)*2*sizeof(Byte));
sbin/hammer2/zlib/hammer2_zlib_deflate.c
250
s->prev = (Posf *) malloc((s->w_size)*sizeof(Pos));
sbin/hammer2/zlib/hammer2_zlib_deflate.c
251
s->head = (Posf *) malloc((s->hash_size)*sizeof(Pos));
sbin/hammer2/zlib/hammer2_zlib_deflate.c
257
overlay = (ushf *) malloc((s->lit_bufsize)*(sizeof(ush)+2));
sbin/hammer2/zlib/hammer2_zlib_inflate.c
191
state = (struct inflate_state FAR *) malloc(sizeof(struct inflate_state));
sbin/ifconfig/af_link.c
84
if ((temp = malloc(strlen(addr) + 2)) == NULL)
sbin/ifconfig/ifcarp.c
210
carpa = malloc(ifd.ifd_len);
sbin/ifconfig/ifclone.c
107
dcp = malloc(sizeof(*dcp));
sbin/ifconfig/ifclone.c
66
buf = malloc(ifcr.ifcr_total * IFNAMSIZ);
sbin/ifconfig/ifconfig.c
777
cb = malloc(sizeof(struct callback));
sbin/ifconfig/ifieee80211.c
1135
temp = malloc(strlen(val) + 2); /* ':' and '\0' */
sbin/ifconfig/ifieee80211.c
1277
temp = malloc(strlen(val) + 2); /* ':' and '\0' */
sbin/ifconfig/ifieee80211.c
1312
temp = malloc(strlen(val) + 2); /* ':' and '\0' */
sbin/ifconfig/ifieee80211.c
1342
temp = malloc(strlen(val) + 2); /* ':' and '\0' */
sbin/ifconfig/ifieee80211.c
209
chaninfo = malloc(IEEE80211_CHANINFO_SIZE(MAXCHAN));
sbin/ifconfig/ifieee80211.c
3787
achans = malloc(IEEE80211_CHANINFO_SPACE(chans));
sbin/ifconfig/ifieee80211.c
3882
achans = malloc(IEEE80211_CHANINFO_SPACE(chaninfo));
sbin/ifconfig/ifieee80211.c
3941
dc = malloc(IEEE80211_DEVCAPS_SIZE(MAXCHAN));
sbin/ifconfig/ifieee80211.c
3943
dc = malloc(IEEE80211_DEVCAPS_SIZE(1));
sbin/ifconfig/ifieee80211.c
4189
data = malloc(len);
sbin/ifconfig/ifieee80211.c
512
dc = malloc(IEEE80211_DEVCAPS_SIZE(MAXCHAN));
sbin/ifconfig/ifieee80211.c
528
req = malloc(IEEE80211_REGDOMAIN_SIZE(dc->dc_chaninfo.ic_nchans));
sbin/ifconfig/ifieee80211.c
540
chaninfo = malloc(IEEE80211_CHANINFO_SPACE(&req->chaninfo));
sbin/ifconfig/ifmedia.c
128
media_list = malloc(ifmr.ifm_count * sizeof(int));
sbin/ifconfig/ifmedia.c
206
ifmr = malloc(sizeof(struct ifmediareq));
sbin/ifconfig/ifmedia.c
230
mwords = malloc(ifmr->ifm_count * sizeof(int));
sbin/init/init.c
1090
sp->se_getty = malloc(strlen(typ->ty_getty) + strlen(typ->ty_name) + 2);
sbin/init/init.c
953
char **argv = malloc(((strlen(command) + 1) / 2 + 1)
sbin/ipfw/ipfw2.c
1514
if ((data = malloc(nbytes)) == NULL)
sbin/ipfw/ipfw2.c
3672
list = malloc(len1);
sbin/ipfw/ipfw2.c
467
buf = malloc(s1 - str + 1);
sbin/ipfw3/ipfw3.c
909
newbuf = malloc(len);
sbin/ipfw3/ipfw3.c
936
newbuf = malloc(len);
sbin/ipfw3/ipfw3sync.c
123
data = malloc(data_len);
sbin/ipfw3/ipfw3sync.c
174
if ((data = malloc(nbytes)) == NULL) {
sbin/ipfw3/ipfw3table.c
311
if ((data = malloc(nbytes)) == NULL) {
sbin/iscontrol/misc.c
109
if((tmp = malloc(len)) == NULL) {
sbin/iscontrol/misc.c
141
if((tmp = malloc(len)) == NULL)
sbin/iscontrol/misc.c
164
dst = malloc(len + 3);
sbin/iscontrol/misc.c
180
dst = malloc(len + 3);
sbin/iscontrol/misc.c
90
if((tmp = malloc((len+1)/2)) == NULL) {
sbin/iscontrol/pdu.c
83
if((pp->ahs = malloc(pp->ahs_size)) == NULL) {
sbin/jscan/dump_mirror.c
316
data->next = malloc(sizeof(jattr->data));
sbin/jscan/jfile.c
130
jf = malloc(sizeof(struct jfile));
sbin/jscan/jfile.c
382
jd = malloc(allocsize);
sbin/jscan/jfile.c
454
jd = malloc(allocsize);
sbin/jscan/jfile.c
54
jf = malloc(sizeof(struct jfile));
sbin/jscan/jstream.c
170
jh = malloc(sizeof(*jh));
sbin/jscan/jstream.c
406
js->js_alloc_buf = malloc(bytes);
sbin/jscan/jstream.c
73
js = malloc(sizeof(struct jstream));
sbin/jscan/subs.c
306
res = malloc(bytes + 1);
sbin/jscan/subs.c
322
res = malloc(bytes + 1);
sbin/kldconfig/kldconfig.c
110
if ((path = malloc(sz + 1)) == NULL) {
sbin/kldconfig/kldconfig.c
182
if (((pe = malloc(sizeof(*pe))) == NULL) ||
sbin/kldconfig/kldconfig.c
265
if (((pe = malloc(sizeof(*pe))) == NULL) ||
sbin/mount/mount.c
461
if ((cp = malloc(len)) == NULL)
sbin/mount/mount.c
516
if ((buf = malloc(len)) == NULL)
sbin/mount/mount.c
574
if ((cp = malloc(i)) == NULL)
sbin/mount/mount.c
648
if ((tmpopt = malloc( strlen(o) + 2 + 1 )) == NULL)
sbin/mount/vfslist.c
72
if ((av = malloc((size_t)(i + 2) * sizeof(char *))) == NULL) {
sbin/mount_nfs/mount_nfs.c
742
nfsargsp->addr = malloc(nfsargsp->addrlen);
sbin/mount_nfs/mount_nfs.c
744
nfsargsp->fh = malloc(nfsargsp->fhsize);
sbin/mount_nfs/mount_nfs.c
834
if ((p = malloc(sizeof(*p))) == NULL)
sbin/mount_ufs/mount.c
418
if ((cp = malloc(len)) == NULL)
sbin/mount_ufs/mount.c
473
if ((buf = malloc(len)) == NULL)
sbin/mount_ufs/mount.c
531
if ((cp = malloc(i)) == NULL)
sbin/mount_ufs/mount.c
605
if ((tmpopt = malloc( strlen(o) + 2 + 1 )) == NULL)
sbin/mountd/mountd.c
1453
ep = (struct exportlist *)malloc(sizeof (struct exportlist));
sbin/mountd/mountd.c
1468
gp = (struct grouplist *)malloc(sizeof (struct grouplist));
sbin/mountd/mountd.c
1520
dp = malloc(sizeof (struct dirlist));
sbin/mountd/mountd.c
1925
hp = (struct hostlist *)malloc(sizeof (struct hostlist));
sbin/mountd/mountd.c
2398
mlp = (struct mountlist *)malloc(sizeof (*mlp));
sbin/mountd/mountd.c
2496
mlp = (struct mountlist *)malloc(sizeof (*mlp));
sbin/mountd/mountd.c
383
hosts = malloc(sizeof(char *));
sbin/mountd/mountd.c
574
res = malloc(sizeof(struct addrinfo));
sbin/mountd/mountd.c
583
sin = malloc(sizeof(struct sockaddr_in));
sbin/mountd/mountd.c
594
sin6 = malloc(sizeof(struct sockaddr_in6));
sbin/mountd/mountd.c
699
svcport_str = malloc(NI_MAXSERV * sizeof(char));
sbin/mountd/mountd.c
717
servaddr.buf = malloc(res->ai_addrlen);
sbin/natacontrol/natacontrol.c
621
if ((buffer = malloc(1024 * 1024)) == NULL)
sbin/natd/natd.c
692
if ((buf = malloc(needed)) == NULL)
sbin/newfs/fscopy.c
186
} else if ((node->fs_Data = malloc(node->fs_St.st_size)) == NULL) {
sbin/newfs/fscopy.c
211
if ((node->fs_Data = malloc(n + 1)) == NULL) {
sbin/newfs/fscopy.c
59
fsnode_t node = malloc(offsetof(struct FSNode, fs_Name[pathlen+1]));
sbin/newfs_hammer2/mkfs_hammer2.c
265
char *buf = malloc(HAMMER2_PBUFSIZE);
sbin/newfs_hammer2/mkfs_hammer2.c
316
char *buf = malloc(HAMMER2_PBUFSIZE);
sbin/newfs_hammer2/mkfs_hammer2.c
515
char *buf = malloc(HAMMER2_PBUFSIZE);
sbin/newfs_msdos/mkfs_msdos.c
624
physbuf = malloc(chunksize);
sbin/ping6/ping6.c
639
if (!(packet = (u_char *)malloc((u_int)packlen)))
sbin/ping6/ping6.c
736
if ((scmsg = (char *)malloc(ip6optlen)) == NULL)
sbin/ping6/ping6.c
892
if ((fdmaskp = malloc(fdmasks)) == NULL)
sbin/ping6/ping6.c
902
cm = (struct cmsghdr *)malloc(CONTROLLEN);
sbin/quotacheck/quotacheck.c
208
if ((qnp = malloc(sizeof(*qnp))) == NULL)
sbin/quotacheck/quotacheck.c
561
(inodebuf = malloc((u_int)inobufsize)) == NULL)
sbin/rconfig/client.c
186
buf = malloc(bytes);
sbin/rconfig/subs.c
211
*bufp = malloc(*lenp);
sbin/restore/dirs.c
556
if ((dirpl = malloc(sizeof(RST_DIR))) == NULL) {
sbin/restore/interactive.c
511
list = (struct afile *)malloc(entries * sizeof(struct afile));
sbin/restore/main.c
313
if ((*argvp = nargv = malloc((argc + 1) * sizeof(char *))) == NULL ||
sbin/restore/main.c
314
(p = flagsp = malloc(strlen(ap) + 2)) == NULL)
sbin/restore/main.c
329
if ((nargv[0] = malloc(strlen(*argv) + 2 + 1)) == NULL)
sbin/restore/symtab.c
392
cp = malloc((unsigned)allocsize(len));
sbin/restore/tape.c
165
tapebuf = malloc(size * TP_BSIZE);
sbin/route/route.c
1264
if ((buf = malloc(needed)) == NULL)
sbin/route/route.c
275
if ((buf = malloc(needed)) == NULL)
sbin/route/show.c
151
if ((buf = malloc(needed)) == NULL) {
sbin/routed/main.c
772
void *p = malloc(size);
sbin/routed/rtquery/rtquery.c
421
sp = malloc(sizeof(*sp));
sbin/savecore/savecore.c
243
buf = malloc(BUFFERSIZE);
sbin/slattach/slattach.c
411
s = (char*) malloc(strlen(config_cmd) + 32);
sbin/slattach/slattach.c
575
s = (char*) malloc(strlen(config_cmd) + 32);
sbin/svc/remote.c
354
arg = malloc(j - i + 1); /* worst case arg size */
sbin/swapon/swapon.c
308
xswbuf = malloc(bytes);
sbin/swapon/swapon.c
466
xswbuf = malloc(bytes);
sbin/sysctl/sysctl.c
179
if ((name_allocated = malloc(cp - string + 1)) == NULL)
sbin/sysctl/sysctl.c
804
val = malloc(j + 1);
sbin/udevd/test_udevd.c
130
udev_enum = malloc(sizeof(struct udev_enumerate));
sbin/udevd/test_udevd.c
214
le = malloc(sizeof(struct udev_list_entry));
sbin/udevd/test_udevd.c
268
udev_monitor = malloc(sizeof(struct udev_monitor));
sbin/udevd/test_udevd.c
333
xml = malloc(12*1024*1024);
sbin/udevd/test_udevd.c
354
udev_dev = malloc(sizeof(struct udev_dev));
sbin/udevd/test_udevd.c
744
xml = malloc(12*1024*1024); /* generous 12 MB */
sbin/udevd/test_udevd.c
98
udev_ctx = malloc(sizeof(struct udev));
sbin/udevd/udevd.c
175
xml = malloc(sz); /* 4 MB */
sbin/udevd/udevd_client.c
85
cli_info = malloc(sizeof(struct client_info));
sbin/udevd/udevd_monitor.c
114
udm = malloc(sizeof(struct udev_monitor));
sbin/udevd/udevd_monitor.c
263
evf = malloc(sizeof(struct event_filter));
sbin/udevd/udevd_monitor.c
434
mary = malloc(sizeof(char *) * (c + 1));
sbin/udevd/udevd_monitor.c
86
udm_ev = malloc(sizeof(struct udev_monitor_event));
sbin/udevd/udevd_pdev.c
87
pae = malloc(sizeof(struct pdev_array_entry));
sbin/udevd/udevd_socket.c
94
xml = malloc(sz+2);
sbin/umount/umount.c
231
if ((cp = malloc((size_t)strlen(fs->fs_file) + 1)) == NULL)
sbin/umount/umount.c
718
if ((origbuf = malloc(bufsize)) == NULL)
sbin/vinum/commands.c
526
statinfo.dinfo = malloc(devs * sizeof(struct statinfo));
sbin/vinum/commands.c
527
namelist = malloc(devs * (DEVSTAT_NAME_LEN + 8));
sbin/vinum/commands.c
528
token = malloc((devs + 1) * sizeof(char *));
sbin/vinum/list.c
1236
statinfo.dinfo = malloc(devs * sizeof(struct statinfo));
sbin/vinum/list.c
1237
namelist = malloc(devs * (DEVSTAT_NAME_LEN + 8));
sbin/vinum/list.c
1238
token = malloc((devs + 1) * sizeof(char *));
sbin/vinum/list.c
1416
config_text = (char *) malloc(MAXCONFIG);
sbin/vquota/vquota.c
118
hlp = malloc(sizeof(struct hl_node));
sbin/vquota/vquota.c
218
unp = malloc(sizeof(struct ac_unode));
sbin/vquota/vquota.c
239
gnp = malloc(sizeof(struct ac_gnode));
share/examples/libusb20/control.c
110
data = malloc(setup.wLength);
share/examples/scsi_target/scsi_target.c
214
aio.aio_buf = malloc(sector_size);
share/examples/scsi_target/scsi_target.c
321
atio = (struct ccb_accept_tio *)malloc(sizeof(*atio));
share/examples/scsi_target/scsi_target.c
326
a_descr = (struct atio_descr *)malloc(sizeof(*a_descr));
share/examples/scsi_target/scsi_target.c
336
inot = (struct ccb_immed_notify *)malloc(sizeof(*inot));
share/examples/scsi_target/scsi_target.c
802
ctio = (struct ccb_scsiio *)malloc(sizeof(*ctio));
share/examples/scsi_target/scsi_target.c
807
c_descr = (struct ctio_descr *)malloc(sizeof(*c_descr));
share/examples/scsi_target/scsi_target.c
813
c_descr->buf = malloc(buf_size);
share/examples/ses/srcs/chpmon.c
64
carray = malloc(a);
share/examples/ses/srcs/sesd.c
83
carray = malloc(a);
share/examples/sunrpc/dir/dir_proc.c
10
extern char *malloc();
share/examples/sunrpc/dir/dir_proc.c
42
nl = *nlp = (namenode *) malloc(sizeof(namenode));
share/examples/sunrpc/dir/dir_proc.c
43
nl->name = malloc(strlen(d->d_name)+1);
share/examples/sunrpc/sort/sort_proc.c
23
ss_res.ss.ss_val = (str *)malloc(ssp->ss.ss_len * sizeof(str *));
stand/boot/common/bcache.c
86
bcache_data = malloc(bcache_nblks * bcache_blksize);
stand/boot/common/bcache.c
87
bcache_ctl = (struct bcachectl *)malloc(bcache_nblks * sizeof(struct bcachectl));
stand/boot/common/boot.c
290
name = malloc(len + 1);
stand/boot/common/do_dloader.c
268
sp = malloc(sizeof(struct includeline) + strlen(cp) + 1);
stand/boot/common/interp_backslash.c
55
new_str = malloc(j);
stand/boot/common/interp_parse.c
178
*argv = (char **)malloc(sizeof(char *) * (ac + 1));
stand/boot/common/interp_parse.c
95
buf = (char *)malloc(PARSE_BUFSIZE);
stand/boot/common/isapnp.c
199
str = malloc(large_len + 1);
stand/boot/common/load_elf.c
111
ef.firstpage = malloc(PAGE_SIZE);
stand/boot/common/load_elf.c
211
mptr = malloc(256);
stand/boot/common/load_elf.c
486
dp = malloc(php->p_filesz);
stand/boot/common/load_elf.c
568
fp = malloc(len + 1);
stand/boot/common/load_elf.c
642
mdepend = malloc(minfolen);
stand/boot/common/load_elf_obj.c
364
mdepend = malloc(minfolen);
stand/boot/common/ls.c
103
buf = malloc(strlen(path) + strlen(d->d_name) + 2);
stand/boot/common/ls.c
145
path = malloc(strlen(*pathp) + 2);
stand/boot/common/misc.c
145
buf = malloc(len);
stand/boot/common/misc.c
51
cp = malloc(hlong);
stand/boot/common/misc.c
87
result = malloc(strlenout(str) + 1);
stand/boot/common/module.c
1006
mdp->d_hints = malloc(size);
stand/boot/common/module.c
1059
mdp = malloc(sizeof(*mdp) + cplen + 1);
stand/boot/common/module.c
1086
mdp = malloc(sizeof(*mdp) + cplen + 1);
stand/boot/common/module.c
198
buf = malloc(8192);
stand/boot/common/module.c
631
md = malloc(sizeof(struct file_metadata) - sizeof(md->md_data) + size);
stand/boot/common/module.c
682
result = malloc(pathlen + namelen + extlen + 2 + 7 + 1);
stand/boot/common/module.c
750
result = malloc(strlen(name) + 7 + 1);
stand/boot/common/module.c
878
mp = malloc(sizeof(struct kernel_module));
stand/boot/common/module.c
942
if ((fp = malloc(sizeof(struct preloaded_file))) != NULL) {
stand/boot/common/module.c
972
cp = malloc(strlen(mdp->d_path) + strlen(fname) + 2);
stand/boot/common/pnp.c
110
id = malloc(sizeof(struct pnpident));
stand/boot/common/pnp.c
123
pi = malloc(sizeof(struct pnpinfo));
stand/boot/common/rel_open.c
102
base = malloc(dlen + len + 2); /* room for trailing / */
stand/boot/common/rel_open.c
163
ptr = malloc(strlen(DirBase) + strlen(path) + 1);
stand/boot/common/rel_open.c
195
ptr = malloc(strlen(DirBase) + strlen(path) + 1);
stand/boot/common/rel_open.c
227
abspath = malloc(strlen(DirBase) + strlen(path) + 1);
stand/boot/common/rel_open.c
234
rootpath = malloc(strlen(abspath) + sizeof("/boot"));
stand/boot/common/rel_open.c
96
base = malloc(len + 2); /* room for trailing / */
stand/boot/dloader/subs.c
65
var = malloc(sizeof(*var) + strlen(name) + 1);
stand/boot/dloader/subs.c
78
var->data = malloc(sizeof(char *) * (count + 1));
stand/boot/dloader/subs.c
90
var = malloc(sizeof(*var));
stand/boot/dloader/subs.c
95
var->data = malloc(sizeof(char *) * (count + 1));
stand/boot/efi/boot1/boot1.c
417
cmd = malloc(cmdsize);
stand/boot/efi/libefi/efi_console.c
274
line = malloc(len * sizeof (CHAR16));
stand/boot/efi/libefi/efinet.c
276
handles = (EFI_HANDLE *)malloc(sz);
stand/boot/efi/libefi/efipart.c
126
devpathcpy = malloc(devpathlen);
stand/boot/efi/libefi/efipart.c
317
blkbuf = malloc(blkio->Media->BlockSize);
stand/boot/efi/libefi/efipart.c
78
hin = (EFI_HANDLE *)malloc(sz * 3);
stand/boot/efi/libefi/handles.c
54
entry = (entry == NULL) ? malloc(sz) : realloc(entry, sz);
stand/boot/efi/loader/arch/x86_64/framebuffer.c
199
buf = malloc(bufsz);
stand/boot/efi/loader/devicename.c
108
idev = malloc(sizeof(struct efi_devdesc));
stand/boot/efi/loader/efi_main.c
124
args = malloc(img->LoadOptionsSize << 1);
stand/boot/efi/loader/efi_main.c
128
args = malloc(img->LoadOptionsSize);
stand/boot/efi/loader/efi_main.c
170
argv = malloc((argc + 1) * sizeof(CHAR16*));
stand/boot/efi/loader/main.c
127
hin = (EFI_HANDLE *)malloc(sz);
stand/boot/efi/loader/main.c
514
map = malloc(sz);
stand/boot/efi/loader/main.c
705
data = malloc(datasz);
stand/boot/efi/loader/main.c
866
varname = malloc(varalloc);
stand/boot/efi/loader/main.c
878
newnm = malloc(varalloc);
stand/boot/pc32/libi386/biosdisk.c
541
od = (struct open_disk *)malloc(sizeof(struct open_disk));
stand/boot/pc32/libi386/biospnp.c
167
devNodeBuffer = (struct pnp_devNode *)malloc(pnp_NodeSize);
stand/boot/pc32/libi386/biospnp.c
221
str = malloc(rlen + 1);
stand/boot/pc32/libi386/biossmap.c
72
smapbase = malloc(n * sizeof(*smapbase));
stand/boot/pc32/libi386/devicename.c
105
idev = malloc(sizeof(struct i386_devdesc));
stand/boot/pc32/libi386/i386_copy.c
78
buf = malloc(chunk);
stand/lib/bzipfs.c
158
bzfname = malloc(strlen(fname) + 5);
stand/lib/bzipfs.c
179
bzf = malloc(sizeof(struct bz_file));
stand/lib/bzipfs.c
69
return(malloc(items * size));
stand/lib/cd9660.c
286
buf = malloc(buf_size = ISO_DEFAULT_BLOCK_SIZE);
stand/lib/cd9660.c
376
fp = malloc(sizeof(struct file));
stand/lib/cd9660.c
445
fp->f_buf = malloc(ISO_DEFAULT_BLOCK_SIZE);
stand/lib/dosfs.c
159
if ((err = !(fs->buf = malloc(SECSIZ)) ? errno : 0) ||
stand/lib/dosfs.c
216
fs = malloc(sizeof(DOS_FS));
stand/lib/dosfs.c
233
f = malloc(sizeof(DOS_FILE));
stand/lib/environment.c
85
ev = malloc(sizeof(struct env_var));
stand/lib/ext2fs.c
340
fp = malloc(sizeof(struct file));
stand/lib/ext2fs.c
347
fs = (struct ext2fs *)malloc(sizeof(*fs));
stand/lib/ext2fs.c
390
fp->f_bg = malloc(len);
stand/lib/ext2fs.c
498
buf = malloc(fs->fs_bsize);
stand/lib/ext2fs.c
563
buf = malloc(fs->fs_bsize);
stand/lib/ext2fs.c
659
malloc(fs->fs_bsize);
stand/lib/ext2fs.c
712
fp->f_buf = malloc(fs->fs_bsize);
stand/lib/gzipfs.c
156
return malloc(items * size);
stand/lib/gzipfs.c
185
zfname = malloc(strlen(fname) + 4);
stand/lib/gzipfs.c
208
zf = malloc(sizeof(struct z_file));
stand/lib/hammer1.c
1099
char *buf = malloc(100000);
stand/lib/hammer1.c
857
hfs->cache[i].data = malloc(HAMMER_BUFSIZE);
stand/lib/hammer1.c
921
struct hfile *hf = malloc(sizeof(*hf));
stand/lib/hammer2.c
825
struct hfile *hf = malloc(sizeof(*hf));
stand/lib/nfs.c
464
newfd = malloc(sizeof(*newfd));
stand/lib/nfs.c
545
currfd = malloc(sizeof(*currfd));
stand/lib/open.c
82
f->f_rabuf = malloc(SOPEN_RASIZE);
stand/lib/splitfs.c
118
sf = malloc(sizeof(struct split_file));
stand/lib/splitfs.c
120
buf = malloc(CONF_BUF);
stand/lib/splitfs.c
248
tmp = malloc(SEEK_BUF);
stand/lib/splitfs.c
97
confname = malloc(strlen(fname) + 7);
stand/lib/stand.h
240
extern void *malloc(size_t);
stand/lib/stand.h
394
p = malloc(size);
stand/lib/strdup.c
45
if ((copy = malloc(len)) == NULL)
stand/lib/tftp.c
284
tftpfile = (struct tftp_handle *) malloc(sizeof(*tftpfile));
stand/lib/ufs.c
140
buf = malloc(fs->fs_bsize);
stand/lib/ufs.c
250
malloc(fs->fs_bsize);
stand/lib/ufs.c
309
fp->f_buf = malloc(fs->fs_bsize);
stand/lib/ufs.c
415
fp = malloc(sizeof(struct file));
stand/lib/ufs.c
420
fs = malloc(SBSIZE);
stand/lib/ufs.c
546
buf = malloc(fs->fs_bsize);
stand/lib/uuid_to_string.c
83
w = *s = malloc(37);
stand/lib/zalloc_malloc.c
125
if ((res = malloc(bytes)) != NULL) {
stand/lib/zalloc_malloc.c
143
if ((res = malloc(size)) != NULL) {
stand/lib/zalloc_malloc.c
48
#ifdef malloc
sys/bus/firewire/firewire.c
1033
kfree(xfer->send.payload, xfer->malloc);
sys/bus/firewire/firewire.c
1036
kfree(xfer->recv.payload, xfer->malloc);
sys/bus/firewire/firewire.c
1038
kfree(xfer, xfer->malloc);
sys/bus/firewire/firewire.c
1049
kfree(xfer, xfer->malloc);
sys/bus/firewire/firewire.c
943
xfer->malloc = type;
sys/bus/firewire/firewirereg.h
260
struct malloc_type *malloc;
sys/crypto/cryptoapi/cryptoapi.c
60
#define kmalloc(size, mtype, flags) malloc(size)
sys/dev/netif/ath/ath_rate/sample/sample.c
1216
tv = malloc(sizeof(struct ath_rateioctl_rt), M_TEMP,
sys/dev/netif/ath/ath_rate/sample/sample.c
1393
ssc = malloc(sizeof(struct sample_softc), M_DEVBUF, M_NOWAIT|M_ZERO);
sys/dev/netif/msk/if_msk.c
2168
entry = malloc(sizeof(struct msk_jpool_entry),
sys/dev/raid/vinum/vinumext.h
264
#define Malloc(x) malloc ((x)) /* just the size */
sys/dev/sound/pci/aureal.c
564
au = malloc(sizeof(*au), M_DEVBUF, M_WAITOK | M_ZERO);
sys/dev/sound/pci/emu10kx.c
3387
func = malloc(sizeof(struct sndcard_func), M_DEVBUF, M_WAITOK | M_ZERO);
sys/dev/sound/pci/emu10kx.c
3392
midiinfo = malloc(sizeof(struct emu_midiinfo), M_DEVBUF, M_WAITOK | M_ZERO);
sys/dev/sound/pci/emu10kx.c
3413
func = malloc(sizeof(struct sndcard_func), M_DEVBUF, M_WAITOK | M_ZERO);
sys/dev/sound/pci/emu10kx.c
3418
midiinfo = malloc(sizeof(struct emu_midiinfo), M_DEVBUF, M_WAITOK | M_ZERO);
sys/kern/subr_alist.c
100
#define kmalloc(a,b,c) malloc(a)
sys/kern/subr_blist.c
122
#define kmalloc(a,b,c) malloc(a)
sys/libprop/prop_object_impl.h
359
#define _PROP_MALLOC(s, t) malloc((s))
sys/libprop/prop_object_impl.h
364
#define _PROP_POOL_GET(p) malloc((p))
sys/net/pf/pf_ruleset.c
73
# define rs_malloc(x) malloc(x)
sys/net/radix.h
201
#define R_Malloc(p, t, n) (p = (t) malloc((n)))
sys/platform/vkernel64/platform/init.c
1358
if ((info->enaddr = malloc(ETHER_ADDR_LEN)) == NULL)
sys/platform/vkernel64/platform/init.c
283
kern_envp = malloc(kenv_size);
sys/platform/vkernel64/platform/init.c
896
if ((info->serno = malloc(SERNOLEN)) != NULL)
sys/vfs/ext2fs/ext2_htree.c
689
buf1 = malloc(blksize, M_TEMP, M_WAITOK | M_ZERO);
sys/vfs/ext2fs/ext2_htree.c
690
buf2 = malloc(blksize, M_TEMP, M_WAITOK | M_ZERO);
sys/vfs/ext2fs/ext2_htree.c
821
newidxblock = malloc(blksize, M_TEMP, M_WAITOK | M_ZERO);
sys/vfs/ext2fs/ext2_htree.c
919
newdirblock = malloc(blksize, M_TEMP, M_WAITOK | M_ZERO);
sys/vfs/ext2fs/ext2_ihash.c
64
ext2_ihashtbl = malloc(sizeof(void *) * ext2_ihash, M_EXT2IHASH,
sys/vfs/ext2fs/ext2_inode.c
170
copy = malloc(fs->e2fs_bsize, M_TEMP, M_WAITOK);
sys/vfs/ext2fs/ext2_lookup.c
173
cookies = malloc(ncookies * sizeof(*cookies), M_TEMP, M_WAITOK);
sys/vfs/ext2fs/ext2_lookup.c
845
buf = malloc(dirblksize, M_TEMP, M_WAITOK);
sys/vfs/ext2fs/ext2_vfsops.c
1284
ip = malloc(sizeof(struct inode), M_EXT2NODE, M_WAITOK | M_ZERO);
sys/vfs/ext2fs/ext2_vfsops.c
647
fs->e2fs_gd = malloc(e2fs_gdbcount_alloc * fs->e2fs_bsize,
sys/vfs/ext2fs/ext2_vfsops.c
649
fs->e2fs_contigdirs = malloc(fs->e2fs_gcount *
sys/vfs/ext2fs/ext2_vfsops.c
923
ump = malloc(sizeof(*ump), M_EXT2MNT, M_WAITOK | M_ZERO);
sys/vfs/ext2fs/ext2_vfsops.c
930
ump->um_e2fs = malloc(sizeof(struct m_ext2fs),
sys/vfs/ext2fs/ext2_vfsops.c
932
ump->um_e2fs->e2fs = malloc(sizeof(struct ext2fs),
sys/vfs/ext2fs/ext2_vfsops.c
949
ump->um_e2fs->e2fs_maxcluster = malloc(size, M_EXT2MNT, M_WAITOK);
sys/vfs/ext2fs/ext2_vfsops.c
951
ump->um_e2fs->e2fs_clustersum = malloc(size, M_EXT2MNT, M_WAITOK);
sys/vfs/ext2fs/ext2_vfsops.c
957
sump->cs_sum = malloc((ump->um_e2fs->e2fs_contigsumsize + 1) *
sys/vfs/ext2fs/ext2_vnops.c
1041
dirbuf = malloc(dp->i_e2fs->e2fs_bsize, M_TEMP, M_WAITOK | M_ZERO);
sys/vfs/ext2fs/ext2_vnops.c
1203
buf = malloc(DIRBLKSIZ, M_TEMP, M_WAITOK | M_ZERO);
sys/vfs/hammer2/xxhash/xxhash.c
105
static void* XXH_malloc(size_t s) { return malloc(s); }
test/crypto/cryptoapi/cryptoapi_test.c
121
fixture->key = malloc(fixture->key_len);
test/crypto/cryptoapi/cryptoapi_test.c
128
fixture->iv = malloc(fixture->iv_len);
test/crypto/cryptoapi/cryptoapi_test.c
135
fixture->pt = malloc(fixture->data_len);
test/crypto/cryptoapi/cryptoapi_test.c
142
fixture->ct = malloc(fixture->data_len);
test/crypto/cryptoapi/cryptoapi_test.c
244
inbuf = malloc(datalen);
test/crypto/cryptoapi/cryptoapi_test.c
250
outbuf = malloc(datalen);
test/crypto/cryptoapi/cryptoapi_test.c
321
fixture = malloc(sizeof(struct test_fixture));
test/debug/checkhammer.c
96
map = malloc(sizeof(*map));
test/debug/crc32hw.c
354
buf = malloc(SIZE);
test/debug/schedmon.c
116
pcpu = malloc(ncpus * sizeof(*pcpu));
test/debug/slabinfo.c
131
psary = malloc(sizeof(void *) * ncpus);
test/debug/vmpagehash.c
151
vm_page_hash = malloc(vm_page_hash_size * sizeof(*vm_page_hash));
test/debug/vmpagehash.c
367
slt = malloc(sizeof(*slt));
test/debug/vmpageinfo.c
555
slt = malloc(sizeof(*slt));
test/debug/vmpageinfo.c
619
hen = malloc(sizeof(*hen));
test/debug/vmpqinactive.c
587
slt = malloc(sizeof(*slt));
test/debug/vmpqinactive.c
651
hen = malloc(sizeof(*hen));
test/ifconf/ifconf.c
59
ifc.ifc_buf = malloc(ifc.ifc_len);
test/interbench/interbench.c
695
if (!(buf = malloc(bsize)))
test/interbench/interbench.c
801
block[i] = (char *) malloc(MB);
test/kvm/kvm_file/test_kvm_file.c
74
errbuf = malloc(_POSIX2_LINE_MAX);
test/libpthread/mutex_d.c
262
assert ((tok = (char *) malloc (strlen(order) + 1)) != NULL);
test/lockf/lockf.c
152
pid = malloc(nprocs * sizeof(pid_t));
test/nvmm/demo/toyvirt/elf.c
111
base = malloc(st.st_size);
test/pcpu/cpustat.c
65
if ((*percpu = malloc(len)) == NULL) {
test/pcpu/ncache-stats.c
63
nch = malloc(nch_len);
test/stress/eatmem.c
32
ptr = malloc(bytes);
test/stress/eattls.c
39
buf = malloc(BIGSIZE);
test/stress/fsstress/fsstress.c
1508
aval = malloc(len);
test/stress/fsstress/fsstress.c
1533
t = malloc(nent * sizeof(*t));
test/stress/fsstress/fsstress.c
2212
buf = malloc(len);
test/stress/fsstress/fsstress.c
2432
val = malloc(len + 1);
test/stress/fsstress/fsstress.c
2616
buf = malloc(len);
test/stress/fsstress/fsstress.c
963
freq_table = malloc(f * sizeof(*freq_table));
test/stress/fsstress/global.h
95
ptr = malloc((bytes + blkmask) & ~blkmask);
test/stress/fsx/fsx.c
1160
original_buf = (char *) malloc(maxfilelen);
test/stress/fsx/fsx.c
1163
good_buf = (char *) malloc(maxfilelen);
test/stress/fsx/fsx.c
1165
temp_buf = (char *) malloc(maxoplen);
test/stress/stress2/testcases/mkfifo/mkfifo.c
56
if ((buf = malloc(bufsize)) == NULL)
test/stress/stress2/testcases/mkfifo/mkfifo.c
77
if ((buf = malloc(bufsize)) == NULL)
test/stress/stress2/testcases/openat/doat.c
122
absolute_file = malloc(strlen(absolute_path) + 1 + strlen(file));
test/stress/stress2/testcases/openat/doat.c
134
relative_file = malloc(strlen(relative_path) + 1 + strlen(file));
test/stress/stress2/testcases/run/run.c
96
r = (pid_t *)malloc(op->argc * sizeof(pid_t));
test/stress/stress2/testcases/socket/socket.c
53
if ((buf = malloc(bufsize)) == NULL)
test/stress/stress2/testcases/socket/socket.c
72
if ((buf = malloc(bufsize)) == NULL)
test/stress/stress2/testcases/swap/swap.c
105
c = malloc(size);
test/stress/stress2/testcases/swap/swap.c
108
c = malloc(size);
test/stress/stress2/testcases/tcp/tcp.c
132
if ((buf = malloc(bufsize)) == NULL)
test/stress/stress2/testcases/tcp/tcp.c
85
if ((buf = malloc(bufsize)) == NULL)
test/stress/t_mlockall.c
30
TestBuf = malloc(TESTSIZE);
test/stress/tuxload.c
160
st = malloc(opt_nofiles * sizeof(*st));
test/stress/tuxload.c
161
fd = malloc(opt_nofiles * sizeof(*fd));
test/stress/tuxload.c
162
pp = malloc(opt_nofiles * sizeof(*pp));
test/stress/webstress/webstress.c
148
array = malloc(sizeof(urlnode_t) * url_count);
test/stress/webstress/webstress.c
240
node = malloc(sizeof(*node));
test/stress/webstress/webstress.c
251
hostname = malloc(ptr - base + 1);
test/sysperf/mbwtest.c
42
buf = malloc(MAXBYTES * 2);
test/sysperf/randread.c
72
buf = malloc(bytes);
test/testcases/mem/mmap_1/mmap_1.c
30
threads = malloc(nthreads * sizeof(pthread_t));
test/testcases/posixipc/open_path_too_long/open_path_too_long.c
8
page = malloc(MAXPATHLEN + 1);
test/testcases/posixipc/unlink_path_too_long/unlink_path_too_long.c
8
page = malloc(MAXPATHLEN + 1);
test/testcases/threads/umtx_errno/umtx_errno.c
58
threads = malloc(sizeof(pthread_t) * (nthreads + 1));
test/unix/passdesc/passdesc.c
140
test_buf = malloc(test_buflen);
tools/diag/dumpvfscache/dumpvfscache.c
69
nchashtbl = malloc(nchash * sizeof *nchashtbl);
tools/diag/dumpvfscache/dumpvfscache.c
70
nc = malloc(sizeof *nc + 400);
tools/diag/dumpvfscache/dumpvfscache.c
71
newbucket = malloc(nchash * sizeof (int));
tools/regression/usr.sbin/installer/libaura/dict2/dict2.c
79
int *val = malloc(sizeof(int));
tools/regression/usr.sbin/installer/libaura/dict3/dict3.c
20
first = malloc(16);
tools/regression/usr.sbin/installer/libaura/dict3/dict3.c
21
second = malloc(16);
tools/test/malloc/main.c
20
foo = malloc (sizeof *foo * NBUCKETS);
tools/test/malloc/main.c
24
foo[j] = malloc(i);
tools/tools/ath/athprom/athprom.c
332
atd.ad_out_data = (caddr_t) malloc(atd.ad_out_size);
tools/tools/ath/athregs/dumpregs.c
167
atd.ad_out_data = (caddr_t) malloc(atd.ad_out_size);
tools/tools/ath/athregs/dumpregs.c
403
atd->ad_in_data = (caddr_t) malloc(space);
tools/tools/bus_autoconf/bus_load_file.c
65
ptr = malloc(len);
tools/tools/bus_autoconf/bus_sections.c
61
pfi = malloc(sizeof(*pfi));
tools/tools/bus_autoconf/bus_usb.c
345
pub = malloc(sizeof(*pub));
tools/tools/bus_autoconf/bus_usb.c
369
id = malloc(usb_blob_count * sizeof(*id));
tools/tools/drm/radeon/mkregtable/mkregtable.c
555
offset = (struct offset *)malloc(sizeof(struct offset));
tools/tools/drm/radeon/mkregtable/mkregtable.c
607
t->table = (unsigned *)malloc(sizeof(unsigned) * t->nentry);
tools/tools/ifinfo/ifinfo.c
116
linkmib = malloc(linkmiblen);
tools/tools/net80211/stumbler/stumbler.c
463
node = (struct node_info*) malloc(sizeof(struct node_info));
tools/tools/net80211/stumbler/stumbler.c
480
malloc(sizeof(struct node_info));
tools/tools/net80211/w00t/ap/ap.c
608
c = malloc(sizeof(*c));
tools/tools/net80211/w00t/expand/expand.c
137
q = (struct queue*) malloc(sizeof(*q));
tools/tools/net80211/w00t/expand/expand.c
332
buf = (char*) malloc(buflen);
tools/tools/net80211/w00t/redir/redir.c
178
q = (struct queue*) malloc(sizeof(*q));
tools/tools/net80211/w00t/redir/redir.c
392
buf = (char*) malloc(buflen);
tools/tools/net80211/wesside/dics/dics.c
191
stuff = (unsigned char*) malloc(len + sizeof(struct ippseudo));
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
469
state = malloc(sizeof(PTW_attackstate));
tools/tools/net80211/wesside/wesside/wesside.c
1113
rtrmac = (unsigned char *) malloc(6);
tools/tools/net80211/wesside/wesside/wesside.c
1189
decryptstate.cipher = (unsigned char*) malloc(decryptstate.clen);
tools/tools/net80211/wesside/wesside/wesside.c
1194
decryptstate.prgainfo.prga = (unsigned char*) malloc(decryptstate.clen);
tools/tools/net80211/wesside/wesside/wesside.c
1523
netip = (unsigned char*) malloc(16);
tools/tools/net80211/wesside/wesside/wesside.c
1758
fs->data = (unsigned char*) malloc(fs->len);
tools/tools/net80211/wesside/wesside/wesside.c
225
tmp = (unsigned char*) malloc(len + sizeof(struct ippseudo));
tools/tools/net80211/wesside/wesside/wesside.c
549
lame = (unsigned char*) malloc(len);
tools/tools/net80211/wesside/wesside/wesside.c
735
victim.ssid = (char*) malloc(elen + 1);
tools/tools/net80211/wesside/wesside/wesside.c
843
prgainfo.prga = (unsigned char*) malloc(len);
tools/tools/net80211/wlanwds/wlanwds.c
271
struct wds *p = malloc(sizeof(struct wds));
tools/tools/net80211/wlanwds/wlanwds.c
387
p = malloc(sizeof(struct wds));
tools/tools/netrate/accept_connect/kq_connect_client/kq_connect_client.c
208
evt_change0 = malloc(nevt_max * sizeof(struct kevent));
tools/tools/netrate/accept_connect/kq_connect_client/kq_connect_client.c
212
evt = malloc(nevt_max * sizeof(struct kevent));
tools/tools/netrate/kq_sendrecv/kq_recvserv/kq_recvserv.c
293
buf = malloc(recv_buflen);
tools/tools/netrate/kq_sendrecv/kq_sendcli/kq_sendcli.c
177
in_arr = malloc(in_arr_sz * sizeof(struct sockaddr_in));
tools/tools/netrate/kq_sendrecv/kq_sendcli/kq_sendcli.c
562
ports = malloc(ports_sz);
tools/tools/netrate/kq_sendrecv/kq_sendcli/kq_sendcli.c
626
buf = malloc(buflen);
tools/tools/netrate/netblast/netblast.c
180
packet = malloc(payloadsize);
tools/tools/netrate/netperf/tcp_stream/tcp_stream.c
75
host = malloc(sizeof(const char *) * nhost);
tools/tools/netrate/netperf/tcp_stream/tcp_stream.c
86
new_host = malloc(sizeof(const char *) * nhost);
tools/tools/netrate/udpecho/udpecho.c
118
buf = malloc(BUFLEN);
tools/tools/usbtest/usb_control_ep_test.c
184
buf = malloc(256);
tools/tools/usbtest/usb_modem_test.c
305
in_buffer = malloc(io_max);
tools/tools/usbtest/usb_modem_test.c
309
out_buffer = malloc(io_max);
tools/tools/usbtest/usb_msc_test.c
709
buffer = malloc(block_size * lba_max);
tools/tools/usbtest/usb_msc_test.c
714
reference = malloc(block_size * lba_max);
usr.bin/apply/apply.c
128
if ((cmd = malloc(cmdsize)) == NULL)
usr.bin/apply/apply.c
168
if ((c = malloc(clen = 1024)) == NULL)
usr.bin/at/at.c
161
if ((ptr = malloc(size)) == NULL)
usr.bin/at/at.c
177
if ((ptr = malloc(size)) == NULL)
usr.bin/at/at.c
696
timestr = malloc(TIMESIZE);
usr.bin/at/at.c
718
if ((joblist = malloc(len * sizeof(*joblist))) == NULL)
usr.bin/at/parsetime.c
183
if ((sc_token = malloc(sc_len)) == NULL)
usr.bin/at/perm.c
67
if ((buffer = malloc(len+2)) == NULL)
usr.bin/bc/bc.y
1012
ret = malloc(strlen(str) + 1);
usr.bin/bc/bc.y
1101
sargv = malloc(argc * sizeof(char *));
usr.bin/bc/bc.y
870
p = malloc(4);
usr.bin/c89/c89.c
70
Argv = malloc((argc + 1 + N_ARGS_PREPENDED) * sizeof *Argv);
usr.bin/calendar/utils.c
97
void *ptr = malloc(size);
usr.bin/chat/chat.c
176
void *ans = malloc (c);
usr.bin/column/column.c
297
list[entries] = malloc((wcslen(buf) + 1) * sizeof(wchar_t));
usr.bin/column/column.c
97
newsep = malloc((seplen + 1) * sizeof(wchar_t));
usr.bin/comm/comm.c
190
if ((buf = malloc((n + 1) * sizeof(*buf))) == NULL)
usr.bin/crunch/crunchgen/crunched_main.c
103
if ((prognames = malloc(nprog * sizeof(char *))) == NULL)
usr.bin/crunch/crunchgen/crunchgen.c
1299
p2 = malloc(sizeof(strlst_t));
usr.bin/crunch/crunchgen/crunchgen.c
421
p2 = malloc(sizeof(prog_t));
usr.bin/crunch/crunchide/crunchide.c
151
newp = (struct keep *) malloc(sizeof(struct keep));
usr.bin/crunch/crunchide/exec_elf64.c
116
rv = malloc(size);
usr.bin/ctags/tree.c
56
if (!(np = (NODE *)malloc(sizeof(NODE)))) {
usr.bin/ctags/tree.c
61
if (!(head = np = (NODE *)malloc(sizeof(NODE))))
usr.bin/cut/cut.c
390
mlbuf = malloc(lbuflen + 1);
usr.bin/dc/mem.c
67
p = malloc(sz);
usr.bin/dfregress/testcase.c
731
testcase = malloc(sizeof(struct testcase));
usr.bin/dfregress/userland.c
218
argv_copy[0] = malloc(strlen(interpreter) + 1);
usr.bin/dfregress/userland.c
227
argv_copy[i + 1] = malloc(len);
usr.bin/dfregress/userland.c
256
tr->stdout_buf = malloc(sz_stdout + 1);
usr.bin/dfregress/userland.c
270
tr->stderr_buf = malloc(sz_stderr + 1);
usr.bin/diff/xmalloc.c
32
ptr = malloc(size);
usr.bin/dsynth/build.c
3064
buf = malloc(COPYBLKSIZE);
usr.bin/dsynth/dsynth.c
567
buf = malloc(st.st_size + 1);
usr.bin/dsynth/dsynth.c
98
DSynthExecPath = malloc(len + 1);
usr.bin/du/du.c
233
p->fts_pointer = malloc(sizeof(du_number_t));
usr.bin/du/du.c
239
p->fts_parent->fts_pointer = malloc(sizeof(du_number_t));
usr.bin/du/du.c
286
p->fts_parent->fts_pointer = malloc(sizeof(du_number_t));
usr.bin/du/du.c
340
buckets = malloc(number_buckets * sizeof(buckets[0]));
usr.bin/du/du.c
350
new_buckets = malloc(new_size * sizeof(struct links_entry *));
usr.bin/du/du.c
359
new_buckets = malloc(new_size * sizeof(new_buckets[0]));
usr.bin/du/du.c
427
le = malloc(sizeof(struct links_entry));
usr.bin/env/envopts.c
180
newstr = malloc(strlen(str) + 1);
usr.bin/env/envopts.c
187
newargv = malloc((*origc + (strlen(str) / 2) + 2) * sizeof(char *));
usr.bin/env/envopts.c
419
vname = malloc(namelen);
usr.bin/env/envopts.c
459
newstr = malloc(newlen);
usr.bin/env/envopts.c
463
newstr = malloc(newlen);
usr.bin/evtranalyze/evtranalyze.c
1198
if (!(cd = malloc(sizeof(*cd))))
usr.bin/evtranalyze/evtranalyze.c
148
if (!(ent = malloc(sizeof(*ent)))) {
usr.bin/evtranalyze/evtranalyze.c
311
if (!(v = malloc(sizeof(*v))))
usr.bin/evtranalyze/evtranalyze.c
314
if (!(v->vals = malloc(v->allocated * sizeof(v->vals[0])))) {
usr.bin/evtranalyze/evtranalyze.c
687
if (!(tdi = malloc(sizeof(struct thread_info))))
usr.bin/evtranalyze/evtranalyze.c
819
if (!(ct->cpus = malloc(sizeof(struct cpu) * ct->ncpus))) {
usr.bin/evtranalyze/evtranalyze.c
823
if (!(freqs = malloc(sizeof(double) * ct->ncpus))) {
usr.bin/evtranalyze/svg.c
158
if (!(r = malloc(sizeof(*r))))
usr.bin/evtranalyze/svg.c
210
if (!(text = malloc(sizeof(*text))))
usr.bin/evtranalyze/svg.c
268
if (!(line = malloc(sizeof(*line))))
usr.bin/evtranalyze/svg.c
306
if (!(svg = malloc(sizeof(*svg))))
usr.bin/evtranalyze/xml.c
44
if ((doc = malloc(sizeof(struct xml_document))) == NULL)
usr.bin/evtranalyze/xml.c
89
if (!(buf = malloc(bufsize))) {
usr.bin/fetch/fetch.c
1118
if ((buf = malloc(B_size)) == NULL)
usr.bin/find/function.c
1371
if ((pre = malloc(sizeof(regex_t))) == NULL)
usr.bin/find/function.c
678
if ((new->e_argv = malloc(cnt * sizeof(char *))) == NULL)
usr.bin/find/function.c
680
if ((new->e_orig = malloc(cnt * sizeof(char *))) == NULL)
usr.bin/find/function.c
682
if ((new->e_len = malloc(cnt * sizeof(int))) == NULL)
usr.bin/find/function.c
693
malloc(MAXPATHLEN)) == NULL)
usr.bin/find/function.c
87
if ((new = malloc(sizeof(PLAN))) == NULL)
usr.bin/finger/finger.c
261
if ((nargv = malloc((argc+1) * sizeof(char *))) == NULL ||
usr.bin/finger/util.c
212
if ((p = malloc(sizeof(PERSON))) == NULL)
usr.bin/finger/util.c
222
if ((w = malloc(sizeof(WHERE))) == NULL)
usr.bin/flame_graph/collect.c
100
buf = malloc(bytes);
usr.bin/flame_graph/process.c
112
scan = malloc(sizeof(elm_t));
usr.bin/fstat/fstat.c
1029
if ((cur = malloc(sizeof(DEVS))) == NULL)
usr.bin/fstat/fstat.c
126
ofiles = malloc((d) * sizeof(struct fdnode)); \
usr.bin/fstat/fstat.c
793
if ((mt = malloc(sizeof (struct mtab))) == NULL)
usr.bin/fstat/msdosfs.c
94
if ((mnt = malloc(sizeof(struct dosmount))) == NULL)
usr.bin/gcore/elfcore.c
119
hdr = malloc(hdrsize);
usr.bin/gcore/elfcore.c
120
if ((hdr = malloc(hdrsize)) == NULL)
usr.bin/gencat/gencat.c
220
if ((p = malloc(len)) == NULL)
usr.bin/gzip/gzip.c
1741
s = malloc(len + slen + 1);
usr.bin/gzip/gzip.c
469
nargv = (char **)malloc((*argc + 1) * sizeof(char *));
usr.bin/gzip/gzip.c
524
outbufp = malloc(BUFLEN);
usr.bin/gzip/gzip.c
525
inbufp = malloc(BUFLEN);
usr.bin/gzip/gzip.c
714
if ((outbufp = malloc(BUFLEN)) == NULL) {
usr.bin/gzip/gzip.c
718
if ((inbufp = malloc(BUFLEN)) == NULL) {
usr.bin/gzip/unbzip2.c
44
inbuf = malloc(BUFLEN);
usr.bin/gzip/unbzip2.c
46
outbuf = malloc(BUFLEN);
usr.bin/gzip/zuncompress.c
137
buf = malloc(BUFSIZE);
usr.bin/head/head.c
164
if ((ap = malloc(strlen(*argv) + 2)) == NULL)
usr.bin/hexdump/parse.c
134
if (!(tfu->fmt = malloc(p - savep + 1)))
usr.bin/indent/indent.c
120
combuf = (char *) malloc(bufsize);
usr.bin/indent/indent.c
123
labbuf = (char *) malloc(bufsize);
usr.bin/indent/indent.c
126
codebuf = (char *) malloc(bufsize);
usr.bin/indent/indent.c
129
tokenbuf = (char *) malloc(bufsize);
usr.bin/indent/indent.c
147
in_buffer = (char *) malloc(10);
usr.bin/indent/lexi.c
605
typenames = (const char **)malloc(sizeof(typenames[0]) *
usr.bin/ipcs/ipcs.c
250
xmsqids = malloc(sizeof(struct msqid_ds) * msginfo.msgmni);
usr.bin/ipcs/ipcs.c
342
xshmids = malloc(sizeof(struct shmid_ds) * shminfo.shmmni);
usr.bin/ipcs/ipcs.c
445
xsema = malloc(sizeof(struct semid_pool) * seminfo.semmni);
usr.bin/join/join.c
415
if ((wcs = malloc((n + 1) * sizeof(*wcs))) == NULL)
usr.bin/join/join.c
634
if ((t = malloc(len + 3)) == NULL)
usr.bin/kcollect/kcollect.c
250
ary_base = malloc(bytes +
usr.bin/kcollect/kcollect.c
846
*ret_ary = malloc(sizeof(kcollect_t) * recCounter);
usr.bin/kdump/kdump.c
143
m = (void *)malloc(size = 1025);
usr.bin/kenv/kenv.c
138
buf = malloc(buflen + 1);
usr.bin/killall/killall.c
465
chain = malloc(sizeof(*chain));
usr.bin/ktrdump/ktrdump.c
1343
if (!(valist = malloc(sizeof(*valist))))
usr.bin/ktrdump/ktrdump.c
1345
if (!(regs = malloc(sizeof(*regs))))
usr.bin/ktrdump/ktrdump.c
289
ktr_start_index = malloc(sizeof(*ktr_start_index) * ncpus);
usr.bin/ktrdump/ktrdump.c
786
sym = malloc(sizeof(struct symdata));
usr.bin/ktrdump/ktrdump.c
842
ktr_bufs = malloc(sizeof(*ktr_bufs) * ncpus);
usr.bin/ktrdump/ktrdump.c
847
it->ents = malloc(sizeof(struct ktr_entry) * entries_per_buf);
usr.bin/ktrdump/ktrdump.c
865
ktr_cpus = malloc(sizeof(*ktr_cpus) * ncpus);
usr.bin/last/last.c
210
if (!(cur = (ARG *)malloc((u_int)sizeof(ARG))))
usr.bin/last/last.c
227
if (!(cur = (TTY *)malloc((u_int)sizeof(TTY))))
usr.bin/last/last.c
276
if (!(mval = malloc((u_int)8)))
usr.bin/last/last.c
331
if ((bufx = malloc(len)) == NULL)
usr.bin/localedef/wide.c
614
mbs = malloc((wcslen(wcs) * mb_cur_max) + 1);
usr.bin/locate/locate/util.c
114
if ((p = malloc(sizeof(char) * (slen + 1)))
usr.bin/locate/locate/util.c
91
if ((dbv = malloc(sizeof(char **))) == NULL)
usr.bin/logger/logger.c
186
socks = malloc(maxs * sizeof(struct socks));
usr.bin/login/login.c
810
nbuf = malloc(MAXLOGNAME);
usr.bin/look/look.c
168
if ((key = malloc(sizeof(wchar_t) * (strlen(string) + 1))) == NULL)
usr.bin/m4/gnum4.c
76
n = malloc(sizeof(struct path_entry));
usr.bin/m4/manual_tokenizer.c
1781
return (void *) malloc( size );
usr.bin/m4/misc.c
183
newstrspace = malloc(strsize + 1);
usr.bin/m4/misc.c
298
void *p = malloc(n);
usr.bin/mail/list.c
387
if ((linebuf = malloc(linebufsize)) == NULL)
usr.bin/mail/main.c
232
if ((path_rc = malloc(sizeof(_PATH_MASTER_RC))) == NULL)
usr.bin/mail/names.c
90
if ((nbuf = malloc(strlen(line) + 1)) == NULL)
usr.bin/mail/popen.c
161
if ((fpp = malloc(sizeof(*fpp))) == NULL)
usr.bin/mail/popen.c
285
*cpp = malloc(sizeof(struct child));
usr.bin/mail/send.c
347
if ((nsto = malloc(sizeof(struct name))) == NULL)
usr.bin/mail/send.c
371
if ((nbuf = malloc(strlen(detract(nsto, 0)) + 1)) == NULL)
usr.bin/mail/strings.c
75
if ((sp->s_topFree = malloc(STRINGSIZE << index)) == NULL)
usr.bin/mail/util.c
391
if ((nbuf = malloc(strlen(name) + 1)) == NULL)
usr.bin/mail/vars.c
91
if ((new = malloc(len)) == NULL)
usr.bin/ministat/ministat.c
350
pl->bar[bar] = malloc(pl->width);
usr.bin/mkcsmapper/yacc.y
258
table = (void *)malloc(table_size * dst_unit_bits / 8);
usr.bin/mkcsmapper/yacc.y
308
ptr = malloc(_CITRUS_MAPPER_STD_ROWCOL_INFO_SIZE);
usr.bin/mkcsmapper/yacc.y
344
ptr = malloc(_CITRUS_MAPPER_STD_ROWCOL_EXT_ILSEQ_SIZE);
usr.bin/mkcsmapper/yacc.y
407
serialized = malloc(size);
usr.bin/mkesdb/yacc.y
209
serialized = malloc(size);
usr.bin/mkesdb/yacc.y
253
csid = malloc(sizeof(*csid));
usr.bin/monitor/monitor.c
125
elm = malloc(sizeof(*elm));
usr.bin/netstat/if.c
515
if ((iftot = malloc(sizeof(struct iftot))) == NULL) {
usr.bin/netstat/if.c
534
if ((ipn = malloc(sizeof(struct iftot))) == NULL) {
usr.bin/netstat/if.c
543
if ((total = malloc(sizeof(struct iftot))) == NULL) {
usr.bin/netstat/if.c
548
if ((sum = malloc(sizeof(struct iftot))) == NULL) {
usr.bin/netstat/inet.c
138
if ((buf = malloc(len)) == NULL) {
usr.bin/netstat/inet.c
404
if ((stattmp = malloc(len)) == NULL) {
usr.bin/netstat/inet.c
577
if ((stattmp = malloc(len)) == NULL) {
usr.bin/netstat/inet.c
688
if ((stattmp = malloc(len)) == NULL) {
usr.bin/netstat/mbuf.c
127
mbstat = malloc(sizeof(*mbstat));
usr.bin/netstat/mbuf.c
135
mbtypes = malloc(mbtypeslen);
usr.bin/netstat/route.c
540
if ((buf = malloc(needed)) == NULL) {
usr.bin/netstat/unix.c
79
if ((buf = malloc(len)) == NULL) {
usr.bin/newkey/update.c
176
com = malloc((unsigned) strlen(command) + 6);
usr.bin/newkey/update.c
264
tmpname = malloc(strlen(filename) + 4);
usr.bin/nl/nl.c
255
if ((intbuffer = malloc(intbuffersize)) == NULL)
usr.bin/paste/paste.c
129
if ((lp = malloc(sizeof(LIST))) == NULL)
usr.bin/paste/paste.c
77
warg = malloc((len + 1) * sizeof(*warg));
usr.bin/patch/inp.c
235
p = malloc(sz + 1);
usr.bin/patch/inp.c
302
if ((lbuf = malloc(len + 1)) == NULL)
usr.bin/patch/inp.c
346
tibuf[0] = malloc(tibuflen + 1);
usr.bin/patch/inp.c
349
tibuf[1] = malloc(tibuflen + 1);
usr.bin/patch/patch.c
166
buf = malloc((unsigned)(buf_size));
usr.bin/patch/pch.c
1232
buf = malloc(buf_size);
usr.bin/patch/pch.c
139
p_line = malloc(hunkmax * sizeof(char *));
usr.bin/patch/pch.c
141
p_len = malloc(hunkmax * sizeof(unsigned short));
usr.bin/patch/pch.c
143
p_char = malloc(hunkmax * sizeof(char));
usr.bin/pctrack/pctrack.c
272
sym = malloc(sizeof(struct symdata));
usr.bin/pkill/pkill.c
338
if ((selected = malloc(nproc)) == NULL) {
usr.bin/pkill/pkill.c
685
if ((li = malloc(sizeof(*li))) == NULL) {
usr.bin/pr/pr.c
188
if ((obuf = malloc((unsigned)(LBUF + off)*sizeof(char))) == NULL) {
usr.bin/pr/pr.c
195
if ((hbuf = malloc((unsigned)(HDBUF + offst)*sizeof(char))) == NULL) {
usr.bin/pr/pr.c
338
if ((buf = malloc((unsigned)lines*mxlen*sizeof(char))) == NULL) {
usr.bin/pr/pr.c
346
if ((hbuf = malloc((unsigned)(HDBUF + offst)*sizeof(char))) == NULL) {
usr.bin/pr/pr.c
359
(struct vcol *)malloc((unsigned)mvc*sizeof(struct vcol))) == NULL) {
usr.bin/pr/pr.c
367
if ((lstdat = (char **)malloc((unsigned)lines*sizeof(char *))) == NULL){
usr.bin/pr/pr.c
375
if ((indy = (int *)malloc((unsigned)lines*sizeof(int))) == NULL) {
usr.bin/pr/pr.c
379
if ((lindy = (int *)malloc((unsigned)lines*sizeof(int))) == NULL) {
usr.bin/pr/pr.c
645
if ((buf = malloc((unsigned)(pgwd+offst+1)*sizeof(char))) == NULL) {
usr.bin/pr/pr.c
653
if ((hbuf = malloc((unsigned)(HDBUF + offst)*sizeof(char))) == NULL) {
usr.bin/pr/pr.c
793
if ((fbuf = (FILE **)malloc((unsigned)clcnt*sizeof(FILE *))) == NULL) {
usr.bin/pr/pr.c
801
if ((hbuf = malloc((unsigned)(HDBUF + offst)*sizeof(char))) == NULL) {
usr.bin/pr/pr.c
851
if ((buf = malloc((unsigned)(pgwd+offst+1)*sizeof(char))) == NULL) {
usr.bin/pwait/pwait.c
93
e = malloc(argc * sizeof(struct kevent));
usr.bin/quota/quota.c
447
if ((qup = (struct quotause *)malloc(sizeof *qup))
usr.bin/rpcgen/rpc_util.c
458
if ((p = malloc(size)) == NULL) {
usr.bin/rpcinfo/rpcinfo.c
1581
(struct netbuf *)malloc(sizeof (struct netbuf));
usr.bin/rpcinfo/rpcinfo.c
1585
(*targaddr)->buf = (char *)malloc(addr.len);
usr.bin/rpcinfo/rpcinfo.c
631
vl = (struct verslist *)malloc(sizeof (struct verslist));
usr.bin/rpcinfo/rpcinfo.c
650
nl = (struct netidlist *)malloc(sizeof (struct netidlist));
usr.bin/rpcinfo/rpcinfo.c
740
list = (rpcblist *)malloc(sizeof (rpcblist));
usr.bin/rpcinfo/rpcinfo.c
758
malloc(strlen(MAXLONG_AS_STRING) + 1);
usr.bin/rpcinfo/rpcinfo.c
804
malloc(sizeof (struct rpcbdump_short));
usr.bin/rs/rs.c
273
if (!(colwidths = (short *) malloc(ocols * sizeof(short))))
usr.bin/rs/rs.c
346
if (!(curline = (char *) malloc(BSIZE)))
usr.bin/rs/rs.c
508
if (!(*list = (short *) malloc(count * sizeof(short))))
usr.bin/rup/rup.c
77
if ((hp = malloc(sizeof(struct host_list))) == NULL)
usr.bin/ruptime/ruptime.c
136
if ((hsp->hs_wd = malloc((size_t)WHDRSIZE)) == NULL)
usr.bin/rusers/rusers.c
81
if ((hp = (struct host_list *)malloc(sizeof(struct host_list))) == NULL)
usr.bin/rwall/rwall.c
176
if ((mbuf = malloc(mbufsize)) == NULL)
usr.bin/sdiff/sdiff.c
1084
if (!(linep = malloc(sizeof(struct fileline))))
usr.bin/sdiff/sdiff.c
238
if ((flagv = malloc(flagc + 2)) == NULL)
usr.bin/sdiff/sdiff.c
896
if (!(diffp = malloc(sizeof(struct diffline))))
usr.bin/sed/compile.c
1016
if ((lh = malloc(sizeof *lh)) == NULL)
usr.bin/sed/compile.c
141
else if ((appends = malloc(sizeof(struct s_appends) * appendnum)) ==
usr.bin/sed/compile.c
144
if ((match = malloc((maxnsub + 1) * sizeof(regmatch_t))) == NULL)
usr.bin/sed/compile.c
182
if ((*link = cmd = malloc(sizeof(struct s_command))) == NULL)
usr.bin/sed/compile.c
193
if ((cmd->a1 = malloc(sizeof(struct s_addr))) == NULL)
usr.bin/sed/compile.c
201
if ((cmd->a2 = malloc(sizeof(struct s_addr)))
usr.bin/sed/compile.c
538
if ((rep = malloc(sizeof(regex_t))) == NULL)
usr.bin/sed/compile.c
569
if ((text = malloc(asize)) == NULL)
usr.bin/sed/compile.c
768
if ((*py = y = malloc(sizeof(*y))) == NULL)
usr.bin/sed/compile.c
857
if ((text = malloc(asize)) == NULL)
usr.bin/sed/compile.c
960
if ((p = malloc(len)) == NULL)
usr.bin/sed/main.c
146
if ((temp_arg = malloc(strlen(optarg) + 2)) == NULL)
usr.bin/sed/main.c
480
if ((cu = malloc(sizeof(struct s_compunit))) == NULL)
usr.bin/sed/main.c
497
if ((fp = malloc(sizeof(struct s_flist))) == NULL)
usr.bin/sed/misc.c
67
if ((oe = malloc(s)) == NULL)
usr.bin/showmount/showmount.c
260
mp = (struct mountlist *)malloc(sizeof(struct mountlist));
usr.bin/showmount/showmount.c
338
ep = (struct exportslist *)malloc(sizeof(struct exportslist));
usr.bin/showmount/showmount.c
348
gp = (struct grouplist *)malloc(sizeof(struct grouplist));
usr.bin/sockstat/sockstat.c
217
if ((buf = malloc(len)) == NULL)
usr.bin/sockstat/sockstat.c
322
if ((buf = malloc(len)) == NULL)
usr.bin/sort/coll.c
985
buf = malloc(MD5_DIGEST_LENGTH * 2 + 1);
usr.bin/sort/mem.c
45
if ((ptr = malloc(size)) == NULL)
usr.bin/sort/sort.c
943
buf = malloc(MD5_DIGEST_LENGTH * 2 + 1);
usr.bin/split/split.c
175
if((bfr = (char *)malloc(bytecnt)) == NULL)
usr.bin/split/split.c
239
if((bfr = (char *)malloc(MAXBSIZE)) == NULL)
usr.bin/strfile/strfile.c
79
ptr = malloc(CHUNKSIZE * sizeof(*ptr)); \
usr.bin/su/su.c
226
nargv = malloc(sizeof(char *) * (size_t)(argc + 4));
usr.bin/systat/convtbl.c
137
if ((buf = malloc(len)) != NULL) {
usr.bin/systat/devs.c
297
specified_devices = (char **)malloc(sizeof(char *));
usr.bin/systat/iostat.c
106
cur.dinfo = (struct devinfo *)malloc(sizeof(struct devinfo));
usr.bin/systat/iostat.c
107
last.dinfo = (struct devinfo *)malloc(sizeof(struct devinfo));
usr.bin/systat/netbw.c
230
tcp_pcbs = malloc(len);
usr.bin/systat/netbw.c
477
elm = malloc(sizeof(*elm));
usr.bin/systat/netcmds.c
210
ports = (struct pitem *)malloc(sizeof (*p));
usr.bin/systat/netcmds.c
269
hosts = (struct hitem *)malloc(sizeof (*p));
usr.bin/systat/netstat.c
183
if ((buf = malloc(len)) == NULL) {
usr.bin/systat/netstat.c
267
if ((p = malloc(sizeof(*p))) == NULL) {
usr.bin/systat/pftop.c
254
ps.ps_buf = malloc(ps.ps_len);
usr.bin/systat/pftop.c
319
array = malloc(n * sizeof(*array));
usr.bin/systat/pftop.c
524
elm = malloc(sizeof(*elm));
usr.bin/systat/pigs.c
169
malloc((nproc + 1) * sizeof(struct p_times))) == NULL) {
usr.bin/systat/symbols.c
103
sym = malloc(sizeof(struct symdata));
usr.bin/systat/vmstat.c
242
cur.dinfo = (struct devinfo *)malloc(sizeof(struct devinfo));
usr.bin/systat/vmstat.c
243
last.dinfo = (struct devinfo *)malloc(sizeof(struct devinfo));
usr.bin/systat/vmstat.c
244
run.dinfo = (struct devinfo *)malloc(sizeof(struct devinfo));
usr.bin/systat/vmstat.c
254
intrnamebuf = malloc(bytes);
usr.bin/systat/vmstat.c
261
intrname = malloc(nintr * sizeof(char *));
usr.bin/systat/vmstat.c
262
intrloc = malloc(nintr * sizeof(*intrloc));
usr.bin/systat/vmstat.c
263
lacc = malloc(nintr * sizeof(*lacc));
usr.bin/systat/vmstat.c
264
intralias = malloc(nintr * sizeof(*intralias));
usr.bin/systat/vmstat.c
265
intrsmp = malloc(nintr * sizeof(*intrsmp));
usr.bin/systat/vmstat.c
931
if ((nch_tmp = malloc(nch_size)) == NULL) {
usr.bin/tail/forward.c
343
ev = malloc(no_files * 2 * sizeof(struct kevent));
usr.bin/tail/read.c
66
if ((sp = p = malloc(off)) == NULL)
usr.bin/tail/reverse.c
201
while ((tl = malloc(sizeof(*tl))) == NULL) {
usr.bin/tail/tail.c
156
files = malloc(no_files * sizeof(struct file_info));
usr.bin/tail/tail.c
301
if ((start = p = malloc(len + 3)) == NULL)
usr.bin/tcopy/tcopy.c
291
if ((bp = malloc((size_t)blk)) == NULL)
usr.bin/tee/tee.c
131
p = malloc(sizeof(struct desc_list));
usr.bin/tee/tee.c
81
if ((buf = malloc(BSIZE)) == NULL)
usr.bin/telnet/commands.c
1624
cp = (char *)malloc(sizeof(char)*buflen);
usr.bin/telnet/commands.c
1654
ep = (struct env_lst *)malloc(sizeof(struct env_lst));
usr.bin/telnet/sys_bsd.c
939
if ((ibitsp = (fd_set *)malloc(fdsn)) == NULL)
usr.bin/telnet/sys_bsd.c
941
if ((obitsp = (fd_set *)malloc(fdsn)) == NULL)
usr.bin/telnet/sys_bsd.c
943
if ((xbitsp = (fd_set *)malloc(fdsn)) == NULL)
usr.bin/telnet/telnet.c
1480
opt_reply = (unsigned char *)malloc(OPT_REPLY_SIZE);
usr.bin/telnet/telnet.c
551
argv = (char **)malloc((n+3)*sizeof(char *));
usr.bin/tip/value.c
108
if ((p->v_value = malloc(size(v)+1)) == NULL) {
usr.bin/top/color.c
131
color_ansi = (char **)malloc(COLOR_ANSI_SLOTS * sizeof(char *));
usr.bin/top/color.c
146
ce = (color_entry *)malloc(sizeof(color_entry));
usr.bin/top/color.c
148
ce->tag = (char *)malloc(len + 1);
usr.bin/top/color.c
202
bytag = (color_entry **)malloc(totaltags * sizeof(color_entry *));
usr.bin/top/color.c
203
bytag_names = (char **)malloc(totaltags * sizeof(char *));
usr.bin/top/display.c
843
cpustate_cidx = (int *)malloc(num_cpustates * sizeof(int));
usr.bin/top/display.c
855
kernel_cidx = (int *)malloc(num_kernel * sizeof(int));
usr.bin/top/display.c
866
memory_cidx = (int *)malloc(num_memory * sizeof(int));
usr.bin/top/display.c
878
swap_cidx = (int *)malloc(num_swap * sizeof(int));
usr.bin/top/hash.c
160
qi = (llistitem *)malloc(sizeof(llistitem) + size);
usr.bin/top/hash.c
234
result = (hash_table *)malloc(sizeof(hash_table));
usr.bin/top/hash.c
241
result->buckets = b = (bucket_t *)malloc(bytes);
usr.bin/top/hash.c
66
void *malloc();
usr.bin/top/m_dragonfly.c
347
cpu_states = malloc(sizeof(*cpu_states) * CPU_STATES * n_cpus);
usr.bin/top/m_dragonfly.c
353
cp_time = malloc(2 * n_cpus * sizeof(cp_time[0]));
usr.bin/top/m_dragonfly.c
379
cpu_averages = malloc(sizeof(*cpu_averages) * CPU_STATES);
usr.bin/top/os.h
79
caddr_t malloc();
usr.bin/top/username.c
101
data = (struct hash_data *)malloc(sizeof(struct hash_data));
usr.bin/top/utils.c
317
resp = result = (char *)malloc(cnt);
usr.bin/top/utils.c
374
argarray = (char **)malloc(cnt * sizeof(char *));
usr.bin/top/utils.c
377
args = (char *)malloc(length+2);
usr.bin/tr/cmap.c
52
cm = malloc(sizeof(*cm));
usr.bin/tr/cmap.c
74
cmn = malloc(sizeof(*cmn));
usr.bin/tr/cmap.c
92
ncmn = malloc(sizeof(*ncmn));
usr.bin/tr/cset.c
103
ncsn = malloc(sizeof(*ncsn));
usr.bin/tr/cset.c
201
csc = malloc(sizeof(*csc));
usr.bin/tr/cset.c
54
if ((cs = malloc(sizeof(*cs))) == NULL)
usr.bin/tr/cset.c
79
csn = malloc(sizeof(*cs->cs_root));
usr.bin/tr/str.c
271
if ((s->set = p = malloc((NCHARS_SB + 1) * sizeof(int))) == NULL)
usr.bin/truss/syscalls.c
151
buf = malloc(max);
usr.bin/truss/x86_64-fbsd.c
177
fsc.args = malloc((1+nargs) * sizeof(unsigned long));
usr.bin/tset/map.c
74
mapp = malloc((u_int)sizeof(MAP));
usr.bin/tsort/tsort.c
254
if ((n = malloc(sizeof(NODE) + key.size)) == NULL)
usr.bin/tsort/tsort.c
325
cycle_buf = malloc(sizeof(NODE *) * cnt);
usr.bin/tsort/tsort.c
326
longest_cycle = malloc(sizeof(NODE *) * cnt);
usr.bin/u4bhidctl/usbhid.c
102
var = malloc(sizeof(*var));
usr.bin/u4bhidctl/usbhid.c
116
var = malloc(sizeof(*var));
usr.bin/u4bhidctl/usbhid.c
329
dbuf = malloc(dlen);
usr.bin/u4bhidctl/usbhid.c
397
dbuf = malloc(dlen);
usr.bin/undo/undo.c
499
buf = malloc(8192);
usr.bin/undo/undo.c
587
tse = malloc(sizeof(*tse));
usr.bin/undo/undo.c
683
av = malloc((ac + 1) * sizeof(char *));
usr.bin/unifdef/unifdef.c
1528
s = (char *)malloc(size);
usr.bin/unifdef/unifdef.c
1546
s = malloc(n);
usr.bin/uniq/uniq.c
189
if ((buf = malloc((n + 1) * sizeof(*buf))) == NULL)
usr.bin/uniq/uniq.c
292
if ((start = p = malloc(len + 3)) == NULL)
usr.bin/unzip/unzip.c
210
if ((str = malloc(len + 1)) == NULL) {
usr.bin/unzip/unzip.c
234
if ((str = malloc(prelen + len)) == NULL) {
usr.bin/unzip/unzip.c
270
if ((entry = malloc(sizeof *entry + len + 1)) == NULL) {
usr.bin/usbhidaction/usbhidaction.c
326
cmd = malloc(sizeof *cmd);
usr.bin/vknet/vknet.c
216
pkt = malloc(MAXPKT);
usr.bin/vmstat/vmstat.c
1073
use = malloc(usebytes);
usr.bin/vmstat/vmstat.c
1149
stat = malloc(len + (8 * sizeof(*stat)));
usr.bin/vmstat/vmstat.c
342
cur.dinfo = (struct devinfo *)malloc(sizeof(struct devinfo));
usr.bin/vmstat/vmstat.c
343
last.dinfo = (struct devinfo *)malloc(sizeof(struct devinfo));
usr.bin/vmstat/vmstat.c
353
specified_devices = (char **)malloc(sizeof(char *));
usr.bin/vmstat/vmstat.c
786
if ((nch_tmp = malloc(nch_size)) == NULL) {
usr.bin/vmstat/vmstat.c
906
intrstr = malloc(inamlen);
usr.bin/vmstat/vmstat.c
914
intrname = malloc(nintr * sizeof(char *));
usr.bin/w/w.c
302
scan = malloc(sizeof(*scan));
usr.bin/wall/wall.c
271
if (!(mbuf = malloc((u_int)mbufsize)))
usr.bin/wall/wall.c
93
g = (struct wallgroup *)malloc(sizeof *g);
usr.bin/whereis/whereis.c
237
if ((cp = malloc(s + 1)) == NULL)
usr.bin/whereis/whereis.c
271
if ((b = malloc(s + 1)) == NULL)
usr.bin/whereis/whereis.c
285
if ((b = malloc(strlen(cp) + 1)) == NULL)
usr.bin/whereis/whereis.c
301
if ((b = malloc(strlen(buf) + 1)) == NULL)
usr.bin/whereis/whereis.c
310
if ((b = malloc(strlen(sourcepath) + 1)) == NULL)
usr.bin/whereis/whereis.c
331
b = malloc(sizeof PATH_DPORTS + 1 +
usr.bin/whereis/whereis.c
425
cp = malloc(strlen(*dp) + 1 + s + 1);
usr.bin/whereis/whereis.c
463
cp = malloc(sizeof MANWHEREISALLCMD - 2 + s);
usr.bin/whereis/whereis.c
465
cp = malloc(sizeof MANWHEREISCMD - 2 + s);
usr.bin/whereis/whereis.c
491
cp2 = malloc(rlen + 1);
usr.bin/whereis/whereis.c
504
cp2 = malloc(s + 1);
usr.bin/whereis/whereis.c
540
cp = malloc(strlen(*dp) + 1 + s + 1);
usr.bin/whereis/whereis.c
583
cp = malloc(sizeof LOCATECMD - 2 + s);
usr.bin/whereis/whereis.c
596
cp2 = malloc(strlen(*dp) + 9);
usr.bin/which/which.c
76
path = malloc(pathlen);
usr.bin/window/cmd7.c
248
if ((yp = (struct yb *) malloc(sizeof *yp)) == NULL)
usr.bin/window/compress.c
244
malloc((unsigned) cc_bufsize * sizeof *cc_output)) == NULL)
usr.bin/window/compress.c
247
malloc((unsigned) cc_bufsize * sizeof *cc_hashcodes)) == NULL)
usr.bin/window/compress.c
249
if ((cc_htab = (struct cc **) malloc(HSIZE * sizeof *cc_htab)) == NULL)
usr.bin/window/compress.c
252
malloc((unsigned)
usr.bin/window/compress.c
257
malloc((unsigned) cc_bufsize * sizeof *cc_undo)) == NULL)
usr.bin/window/compress.c
261
malloc((unsigned) cc_bufsize * sizeof **cc_places)) == NULL)
usr.bin/window/compress.c
267
if ((p = (struct cc *) malloc((unsigned) cc_ntoken * sizeof *p)) == NULL)
usr.bin/window/compress.c
289
if ((cc_buffer = malloc((unsigned) cc_bufsize)) == NULL)
usr.bin/window/context.c
58
malloc((unsigned) sizeof (struct context));
usr.bin/window/string.c
119
s = malloc(offsetof(struct string, s_data[l]));
usr.bin/window/ttinit.c
76
if ((tt_ob = malloc((unsigned) i)) == NULL) {
usr.bin/window/ttinit.c
93
if (q != p && (t = malloc((unsigned) (q - p + 1))) != NULL) {
usr.bin/window/tttermcap.c
62
if ((s = (struct tt_str *) malloc(sizeof *s)) == NULL)
usr.bin/window/tttermcap.c
78
if ((s = (struct tt_str *) malloc(sizeof *s)) == NULL)
usr.bin/window/var.c
57
r = (struct var *) malloc(sizeof (struct var));
usr.bin/window/window_string.h
69
#define str_alloc(s) malloc(s)
usr.bin/window/wwalloc.c
47
malloc((unsigned) sizeof (char **) * nrow + size * nrow * ncol);
usr.bin/window/wwinit.c
217
if ((wwib = malloc((unsigned) 512)) == 0)
usr.bin/window/wwinit.c
250
wwtouched = malloc((unsigned) wwnrow);
usr.bin/window/wwinit.c
258
wwupd = (struct ww_update *) malloc((unsigned) wwnrow * sizeof *wwupd);
usr.bin/window/wwiomux.c
89
malloc(sizeof(*pfd) * nfd) :
usr.bin/window/wwopen.c
115
if ((w->ww_ob = malloc(512)) == 0) {
usr.bin/window/wwopen.c
160
w->ww_nvis = (short *)malloc((unsigned) w->ww_w.nr * sizeof (short));
usr.bin/window/wwsize.c
71
nvis = malloc((unsigned) nrow * sizeof (short));
usr.bin/window/xx.c
120
xp = (struct xx *) malloc((unsigned) sizeof *xp);
usr.bin/window/xx.c
53
xxbuf = malloc((unsigned) xxbufsize * sizeof *xxbuf);
usr.bin/xargs/xargs.c
258
if ((av = bxp = malloc(linelen * sizeof(char *))) == NULL)
usr.bin/xargs/xargs.c
301
if ((bbp = malloc((size_t)(nline + 1))) == NULL)
usr.bin/xargs/xargs.c
499
tmp = malloc((argc + 1) * sizeof(char *));
usr.bin/xargs/xargs.c
716
if ((childpids = malloc(maxprocs * sizeof(*childpids))) == NULL)
usr.sbin/ac/ac.c
109
if ((tp = malloc(sizeof(*tp))) == NULL)
usr.sbin/ac/ac.c
194
if ((up = malloc(sizeof(*up))) == NULL)
usr.sbin/ac/ac.c
392
if ((lp = malloc(sizeof(*lp))) == NULL)
usr.sbin/acpi/acpicall/acpicall.c
114
if ((args[i].Buffer.Pointer = malloc(16)) == NULL) {
usr.sbin/acpi/acpicall/acpicall.c
158
params.result.Pointer = malloc(result_buf_size);
usr.sbin/acpi/acpicall/acpicall.c
210
if ((dst->Buffer.Pointer = malloc(len)) == NULL) {
usr.sbin/arp/arp.c
498
if ((buf = malloc(needed)) == NULL)
usr.sbin/authpf/authpf.c
477
if ((lbuf = (char *)malloc(len + 1)) == NULL)
usr.sbin/autofs/popen.c
90
cur = malloc(sizeof(struct pid));
usr.sbin/boot0cfg/boot0cfg.c
236
if ((*mbr = malloc(mbr_size)) == NULL)
usr.sbin/boot0cfg/boot0cfg.c
247
if ((*mbr = malloc(sizeof(buf))) == NULL)
usr.sbin/bthcid/client.c
154
cl = malloc(sizeof(struct client));
usr.sbin/bthcid/client.c
224
item = malloc(sizeof(struct item));
usr.sbin/bthcid/client.c
278
item = malloc(sizeof(struct item));
usr.sbin/bthcid/config.c
128
lkey->key = (uint8_t *) malloc(HCI_KEY_SIZE);
usr.sbin/bthcid/parser.y
143
key->key = (uint8_t *) malloc(HCI_KEY_SIZE);
usr.sbin/bthcid/parser.y
325
lkey->key = (uint8_t *) malloc(HCI_KEY_SIZE);
usr.sbin/bthcid/parser.y
79
key = (link_key_p) malloc(sizeof(*key));
usr.sbin/chown/chown.c
279
if ((groups = malloc(sizeof(gid_t) * ngroups_max)) == NULL)
usr.sbin/config/config.y
153
cp = malloc(sizeof(struct cputype));
usr.sbin/config/config.y
181
op = malloc(sizeof(struct opt));
usr.sbin/config/config.y
240
op = malloc(sizeof(struct opt));
usr.sbin/config/config.y
257
op = malloc(sizeof(struct opt));
usr.sbin/config/config.y
289
op = malloc(sizeof(struct opt));
usr.sbin/config/config.y
403
np = malloc(sizeof(*np));
usr.sbin/config/main.c
381
cp = malloc((size_t)(strlen(destdir) + (file ? strlen(file) : 0) + 2));
usr.sbin/config/mkheaders.c
171
fl = malloc(sizeof(*fl));
usr.sbin/config/mkheaders.c
188
fl = malloc(sizeof(*fl));
usr.sbin/config/mkmakefile.c
120
fp = malloc(sizeof(*fp));
usr.sbin/config/mkmakefile.c
441
dp = malloc(sizeof(*dp));
usr.sbin/config/mkoptions.c
194
op = malloc(sizeof(*op));
usr.sbin/config/mkoptions.c
221
op = malloc(sizeof(*op));
usr.sbin/config/mkoptions.c
349
po = malloc(sizeof(*po));
usr.sbin/config/mkoptions.c
61
op = malloc(sizeof(*op));
usr.sbin/config/mkoptions.c
79
op = malloc(sizeof(*op));
usr.sbin/cpucontrol/cpucontrol.c
431
newdir = (struct datadir *)malloc(sizeof(*newdir));
usr.sbin/cron/cron/externs.h
59
extern void *malloc(), *realloc();
usr.sbin/cron/cron/job.c
44
if ((j = (job*)malloc(sizeof(job))) == NULL)
usr.sbin/cron/cron/popen.c
77
if (!(pids = (PID_T *)malloc((u_int)(fds * sizeof(PID_T)))))
usr.sbin/cron/cron/user.c
67
if ((u = (user *) malloc(sizeof(user))) == NULL) {
usr.sbin/cron/lib/compat.c
222
if (!(tmp = malloc(strlen(name) + strlen(value) + 2))) {
usr.sbin/cron/lib/compat.c
56
if ((temp = malloc(strlen(str) + 1)) == NULL) {
usr.sbin/cron/lib/env.c
28
p = malloc(sizeof(char *));
usr.sbin/cron/lib/env.c
54
p = (char **) malloc((count+1) * sizeof(char *)); /* 1 for the NULL */
usr.sbin/cron/lib/misc.c
440
msg = malloc(strlen(username)
usr.sbin/cron/lib/misc.c
586
dst = malloc(len * 4 + 1);
usr.sbin/dntpd/client.c
275
info = malloc(sizeof(*info));
usr.sbin/dntpd/main.c
349
info = malloc(sizeof(struct server_info));
usr.sbin/edquota/edquota.c
128
if ((qup = malloc(sizeof(*qup))) == NULL)
usr.sbin/edquota/edquota.c
340
if ((qup = (struct quotause *)malloc(qupsize)) == NULL)
usr.sbin/efibootmgr/efibootmgr.c
331
nent = malloc(sizeof(struct entry));
usr.sbin/efibootmgr/efibootmgr.c
361
new_data = malloc(size);
usr.sbin/efibootmgr/efibootmgr.c
440
new = malloc(size);
usr.sbin/efibootmgr/efibootmgr.c
464
new = malloc(size);
usr.sbin/efibootmgr/efibootmgr.c
559
vals = malloc(sizeof(uint16_t) * cnt);
usr.sbin/efibootmgr/efibootmgr.c
687
dp = malloc(llen + klen);
usr.sbin/efibootmgr/efibootmgr.c
698
load_opt_buf = malloc(MAX_LOADOPT_LEN);
usr.sbin/efibootmgr/efibootmgr.c
718
new_ent = malloc(sizeof(struct entry));
usr.sbin/efibootmgr/efibootmgr.c
801
buf = malloc(len + 1);
usr.sbin/efibootmgr/efibootmgr.c
917
boot_order = malloc(size);
usr.sbin/efidp/efidp.c
222
dp = malloc(dplen);
usr.sbin/efidp/efidp.c
70
retval = malloc(len);
usr.sbin/efivar/efiutil.c
83
ucs2 = malloc(datalen + sizeof(efi_char));
usr.sbin/efivar/efivar.c
198
data = malloc(64 * 1024);
usr.sbin/fdformat/fdformat.c
112
buf = malloc(bufsz);
usr.sbin/fdwrite/fdwrite.c
143
trackbuf = malloc(bpt);
usr.sbin/fdwrite/fdwrite.c
147
vrfybuf = malloc(bpt);
usr.sbin/fstyp/fstyp.c
103
buf = malloc(len);
usr.sbin/ftp-proxy/ftp-proxy.c
140
if ((cb->buffer = malloc(MAX_LINE)) == NULL)
usr.sbin/fwcontrol/fwcontrol.c
117
asyreq = (struct fw_asyreq *)malloc(sizeof(struct fw_asyreq_t) + 16);
usr.sbin/fwcontrol/fwcontrol.c
155
asyreq = (struct fw_asyreq *)malloc(sizeof(struct fw_asyreq_t) + 12);
usr.sbin/fwcontrol/fwcontrol.c
180
asyreq = (struct fw_asyreq *)malloc(sizeof(struct fw_asyreq_t) + 12);
usr.sbin/fwcontrol/fwcontrol.c
199
asyreq = (struct fw_asyreq *)malloc(sizeof(struct fw_asyreq_t) + 16);
usr.sbin/fwcontrol/fwcontrol.c
381
tmap = malloc(sizeof(struct fw_topology_map));
usr.sbin/fwcontrol/fwcontrol.c
80
data = (struct fw_devlstreq *)malloc(sizeof(struct fw_devlstreq));
usr.sbin/fwcontrol/fwdv.c
106
buf = (char *)malloc(RBUFSIZE);
usr.sbin/fwcontrol/fwdv.c
107
pad = (char *)malloc(DSIZE*MAXBLOCKS);
usr.sbin/fwcontrol/fwdv.c
266
pbuf = (char *)malloc(DSIZE * TNBUF);
usr.sbin/gifconfig/gifconfig.c
241
if ((buf = malloc(needed)) == NULL)
usr.sbin/inetd/inetd.c
1321
sep = (struct servtab *)malloc(sizeof (*sep));
usr.sbin/inetd/inetd.c
1740
sep->se_pids = malloc(sep->se_maxchild * sizeof(*sep->se_pids));
usr.sbin/inetd/inetd.c
2163
if ((conn = malloc(sizeof(struct conninfo))) == NULL) {
usr.sbin/inetd/inetd.c
2167
conn->co_proc = malloc(sep->se_maxperip * sizeof(*conn->co_proc));
usr.sbin/inetd/inetd.c
2310
if ((proc = malloc(sizeof(struct procinfo))) == NULL) {
usr.sbin/installer/dfuibe_installer/fn_subpart_hammer.c
909
res = malloc(strlen(mtpt) + 1);
usr.sbin/installer/dfuibe_installer/fn_zonetab.c
101
file = malloc(sb.st_size + 1);
usr.sbin/installer/dfuibe_installer/fn_zonetab.c
130
c->next = malloc(sizeof(struct zonetab));
usr.sbin/installer/dfuibe_installer/fn_zonetab.c
136
c->next = malloc(sizeof(struct zonetab));
usr.sbin/installer/libaura/buffer.c
63
e = malloc(sizeof(struct aura_buffer));
usr.sbin/installer/libaura/buffer.c
69
e->buf = malloc(size);
usr.sbin/installer/libaura/dict.c
97
d->b = malloc(sizeof(struct bucket *) * num_buckets);
usr.sbin/installer/libaura/mem.c
57
if ((ptr = malloc(size)) == NULL) {
usr.sbin/installer/libaura/popen.c
100
if ((cur = malloc(sizeof(struct pid))) == NULL) {
usr.sbin/installer/libdfui/conn_npipe.c
174
fmsg = malloc(strlen(msg) + 2);
usr.sbin/installer/libdfui/conn_npipe.c
239
buf = malloc(length + 1);
usr.sbin/installer/libdfui/conn_npipe.c
342
fmsg = malloc(strlen(msg) + 2);
usr.sbin/installer/libdfui/conn_npipe.c
365
buf = malloc(length + 1);
usr.sbin/installer/libdfui/conn_tcp.c
204
fmsg = malloc(strlen(msg) + 2);
usr.sbin/installer/libdfui/conn_tcp.c
284
buf = malloc(length + 1);
usr.sbin/installer/libdfui/conn_tcp.c
395
fmsg = malloc(strlen(msg) + 2);
usr.sbin/installer/libdfui/conn_tcp.c
419
buf = malloc(length + 1);
usr.sbin/installer/libdfui/system.c
28
p = malloc(len);
usr.sbin/iostat/iostat.c
263
if ((cur.dinfo = (struct devinfo *)malloc(sizeof(struct devinfo))) ==
usr.sbin/iostat/iostat.c
266
if ((last.dinfo = (struct devinfo *)malloc(sizeof(struct devinfo))) ==
usr.sbin/iostat/iostat.c
287
if ((specified_devices = (char **)malloc(sizeof(char *))) == NULL)
usr.sbin/ip6addrctl/ip6addrctl.c
124
if ((buf = malloc(l)) == NULL) {
usr.sbin/ip6addrctl/ip6addrctl.c
137
if ((new = malloc(sizeof(*new))) == NULL)
usr.sbin/ip6addrctl/ip6addrctl.c
242
if ((new = malloc(sizeof(*new))) == NULL)
usr.sbin/jail/jail.c
66
j.ips = malloc(sizeof(struct sockaddr_storage)*20);
usr.sbin/jls/jls.c
57
jls = malloc(len);
usr.sbin/kbdcontrol/kbdcontrol.c
133
buf = (char *)malloc(f);
usr.sbin/kbdmap/kbdmap.c
138
km_new = (struct keymap *) malloc (sizeof(struct keymap));
usr.sbin/kbdmap/kbdmap.c
223
fnt = (char *) malloc(strlen(buf) + 1);
usr.sbin/kbdmap/kbdmap.c
363
cmd = (char *) malloc(strlen(dialog) + size + 1);
usr.sbin/kbdmap/kbdmap.c
727
malloc(num_keymaps*sizeof(struct keymap *));
usr.sbin/keyserv/setkey.c
334
new = (struct secretkey_netname_list *)malloc(sizeof (*new));
usr.sbin/keyserv/setkey.c
415
new = (struct secretkey_netname_list *) malloc(sizeof (*new));
usr.sbin/keyserv/setkey.c
495
new = (struct cachekey_list *) malloc(sizeof (struct cachekey_list));
usr.sbin/lpr/chkprintcap/chkprintcap.c
221
dp = malloc(sizeof *dp);
usr.sbin/lpr/chkprintcap/skimprintcap.c
84
skinf = malloc(sizeof(struct skiminfo));
usr.sbin/lpr/common_source/common.c
127
queue = (struct jobqueue **)malloc(arraysz * sizeof(struct jobqueue *));
usr.sbin/lpr/common_source/common.c
142
q = (struct jobqueue *)malloc(entrysz);
usr.sbin/lpr/common_source/ctlinfo.c
256
cstart = malloc(msize);
usr.sbin/lpr/common_source/matchjobs.c
121
jspec->fmtoutput = malloc(strsize);
usr.sbin/lpr/common_source/matchjobs.c
152
jspec->fmtoutput = malloc(strsize);
usr.sbin/lpr/common_source/matchjobs.c
220
jsinfo = malloc(sizeof(struct jobspec));
usr.sbin/lpr/common_source/net.c
278
iovp = malloc(n * sizeof *iovp);
usr.sbin/lpr/common_source/printcap.c
434
if ((retval = malloc(nameend - bp + 1)) != NULL) {
usr.sbin/lpr/common_source/rmjob.c
328
iov = malloc(niov * sizeof *iov);
usr.sbin/lpr/lpd/lpd.c
865
socks = malloc((maxs + 1) * sizeof(int));
usr.sbin/lpr/lpr/lpr.c
745
dirpath = malloc(dlen);
usr.sbin/lpr/lpr/lpr.c
879
if ((s = malloc(len)) == NULL)
usr.sbin/mailwrapper/mailwrapper.c
59
if ((al->argv = malloc(al->maxc * sizeof(char *))) == NULL)
usr.sbin/memcontrol/memcontrol.c
136
mrd = malloc(*nmr * sizeof(struct mem_range_desc));
usr.sbin/mfiutil/mfi_config.c
1244
config = malloc(len);
usr.sbin/mfiutil/mfi_config.c
954
spare = malloc(sizeof(struct mfi_spare) + sizeof(uint16_t) *
usr.sbin/mfiutil/mfi_evt.c
635
list = malloc(size);
usr.sbin/mfiutil/mfi_flash.c
140
buf = malloc(FLASH_BUF_SIZE);
usr.sbin/mld6query/mld6query.c
190
if ((cmsgbuf = malloc(cmsglen)) == NULL)
usr.sbin/mpsutil/mps_cmd.c
372
buf = malloc(len);
usr.sbin/mpsutil/mps_cmd.c
425
buf = malloc(len);
usr.sbin/mpsutil/mps_cmd.c
547
buf = malloc(req.len);
usr.sbin/mpsutil/mps_cmd.c
596
buf = malloc(req.len);
usr.sbin/mpsutil/mps_cmd.c
702
facts = malloc(sizeof(MPI2_IOC_FACTS_REPLY));
usr.sbin/mpsutil/mps_debug.c
81
buf = malloc(len);
usr.sbin/mptable/mptable.c
795
if ( (oemdata = (void*)malloc( cth.oem_table_size )) == NULL )
usr.sbin/mptutil/mpt_cmd.c
397
buf = malloc(req.len);
usr.sbin/mptutil/mpt_cmd.c
446
buf = malloc(req.len);
usr.sbin/mptutil/mpt_drive.c
181
volumes = malloc(sizeof(*volumes) * ioc2->NumActiveVolumes);
usr.sbin/mptutil/mpt_drive.c
199
list = malloc(sizeof(*list) + sizeof(CONFIG_PAGE_RAID_PHYS_DISK_0) *
usr.sbin/mptutil/mpt_evt.c
131
entries = malloc(sizeof(MPI_LOG_0_ENTRY *) * log->NumLogEntries);
usr.sbin/mptutil/mpt_show.c
414
volumes = malloc(sizeof(*volumes) * ioc2->NumActiveVolumes);
usr.sbin/mtree/excludes.c
81
if ((e = malloc(sizeof *e)) == NULL)
usr.sbin/mtree/hash.c
83
buf = malloc(digest_len * 2 + 1);
usr.sbin/mtree/misc.c
202
if ((e = malloc(len)) == NULL)
usr.sbin/mtree/only.c
86
if ((e = malloc(sizeof(*e))) == NULL)
usr.sbin/mtree/spec.c
626
if ((ip->tags = malloc(len)) == NULL)
usr.sbin/ndp/ndp.c
1033
buf = malloc(l);
usr.sbin/ndp/ndp.c
1135
buf = malloc(l);
usr.sbin/ndp/ndp.c
605
if ((buf = malloc(needed)) == NULL)
usr.sbin/newsyslog/newsyslog.c
1558
oldlogs = malloc(MAX_OLDLOGS * sizeof(struct oldlog_entry));
usr.sbin/newsyslog/newsyslog.c
1707
inc = malloc(sizeof(struct include_entry));
usr.sbin/newsyslog/newsyslog.c
2175
stmp = malloc(tmpsiz);
usr.sbin/newsyslog/newsyslog.c
2228
ztmp = malloc(tmpsiz);
usr.sbin/newsyslog/newsyslog.c
410
tempwork = malloc(sizeof(struct conf_entry));
usr.sbin/newsyslog/newsyslog.c
840
filelist = malloc(sizeof(struct cflist));
usr.sbin/newsyslog/newsyslog.c
844
globlist = malloc(sizeof(struct cflist));
usr.sbin/newsyslog/newsyslog.c
849
inc = malloc(sizeof(struct include_entry));
usr.sbin/newsyslog/newsyslog.c
915
cmdlist = malloc(sizeof(struct cflist));
usr.sbin/newsyslog/ptimes.c
332
newdata = malloc(sizeof(struct ptime_data));
usr.sbin/nscd/agent.c
78
new_agents = (struct agent **)malloc(sizeof(struct agent *) *
usr.sbin/nscd/agents/group.c
175
*buffer = (char *)malloc(*buffer_size);
usr.sbin/nscd/agents/group.c
203
*buffer = (char *)malloc(*buffer_size);
usr.sbin/nscd/agents/passwd.c
182
*buffer = (char *)malloc(*buffer_size);
usr.sbin/nscd/agents/passwd.c
210
*buffer = (char *)malloc(*buffer_size);
usr.sbin/nscd/agents/services.c
196
*buffer = (char *)malloc(*buffer_size);
usr.sbin/nscd/agents/services.c
224
*buffer = (char *)malloc(*buffer_size);
usr.sbin/nscd/cachelib.c
831
item_data.key = (char *)malloc(key_size);
usr.sbin/nscd/cachelib.c
834
item_data.value = (char *)malloc(value_size);
usr.sbin/nscd/cachelib.c
952
new_item->value = (char *)malloc(data_size);
usr.sbin/nscd/config.c
335
new_mp_entries = (cache_entry *)malloc(sizeof(cache_entry) *
usr.sbin/nscd/hashtable.h
85
(table)->entries[var].field.values = (type *)malloc(\
usr.sbin/nscd/mp_rs_query.c
427
read_response->data = (char *)malloc(read_response->data_size);
usr.sbin/nscd/nscd.c
831
thread_args = (struct processing_thread_args *)malloc(
usr.sbin/nscd/query.c
722
read_response->data = (char *)malloc(
usr.sbin/pciconf/pciconf.c
682
if ((cv = malloc(sizeof(struct pci_vendor_info))) == NULL) {
usr.sbin/pciconf/pciconf.c
707
if ((cd = malloc(sizeof(struct pci_device_info))) == NULL) {
usr.sbin/pfctl/parse.y
1010
if ((loadanchor->anchorname = malloc(MAXPATHLEN)) ==
usr.sbin/pfctl/parse.y
1238
hh = malloc(sizeof(*hh));
usr.sbin/pfctl/parse.y
5895
if ((sym = malloc(strlen(s) - strlen(val) + 1)) == NULL)
usr.sbin/pfctl/pfctl_altq.c
100
if ((altq = malloc(sizeof(*altq))) == NULL)
usr.sbin/pfctl/pfctl_optimize.c
1258
if ((ti->host = malloc(sizeof(*ti->host))) == NULL)
usr.sbin/pfctl/pfctl_osfp.c
881
if ((*v = malloc(fieldlen + 1)) == NULL) {
usr.sbin/pfctl/pfctl_parser.c
1419
if ((ps = malloc(strlen(s) - strlen(p) + 1)) == NULL)
usr.sbin/pflogd/pflogd.c
132
buf = malloc(len);
usr.sbin/pflogd/pflogd.c
699
buffer = malloc(PFLOGD_BUFSIZE);
usr.sbin/ppp/arp.c
253
if ((buf = malloc(needed)) == NULL)
usr.sbin/ppp/bundle.c
1397
if ((iov[f].iov_base = malloc(iov[f].iov_len)) == NULL) {
usr.sbin/ppp/ccp.c
369
*o = (struct ccp_opt *)malloc(sizeof(struct ccp_opt));
usr.sbin/ppp/chap.c
144
if ((result = malloc(1 + nlen + MS_CHAP_RESPONSE_LEN)) == NULL)
usr.sbin/ppp/chap.c
191
if ((result = malloc(1 + nlen + CHAP81_RESPONSE_LEN)) == NULL)
usr.sbin/ppp/chap.c
231
if ((result = malloc(nlen + 17)) != NULL) {
usr.sbin/ppp/chap.c
770
if ((ans = malloc(alen + 1)) == NULL) {
usr.sbin/ppp/chap.c
787
if ((ans = malloc(len + 1)) == NULL) {
usr.sbin/ppp/chap_ms.c
194
buf = malloc(2*LENGTH + 1);
usr.sbin/ppp/chat.c
247
c->abort.string[i].data = (char *)malloc(len+1);
usr.sbin/ppp/datalink.c
1433
name = (char *)malloc(n+3);
usr.sbin/ppp/datalink.c
795
dl = (struct datalink *)malloc(sizeof(struct datalink));
usr.sbin/ppp/datalink.c
875
dl = (struct datalink *)malloc(sizeof(struct datalink));
usr.sbin/ppp/deflate.c
494
state = (struct deflate_state *)malloc(sizeof(struct deflate_state));
usr.sbin/ppp/deflate.c
517
state = (struct deflate_state *)malloc(sizeof(struct deflate_state));
usr.sbin/ppp/defs.c
394
return (fd_set *)malloc(howmany(getdtablesize(), NFDBITS) * sizeof (fd_mask));
usr.sbin/ppp/ether.c
478
if ((dev = malloc(sizeof *dev)) == NULL)
usr.sbin/ppp/ether.c
697
if ((dev = malloc(sizeof *dev)) == NULL) {
usr.sbin/ppp/iface.c
125
if ((buf = (char *)malloc(needed)) == NULL) {
usr.sbin/ppp/iface.c
148
iface = (struct iface *)malloc(sizeof *iface);
usr.sbin/ppp/ipcp.c
195
if ((ipcp->ns.resolv_nons = (char *)malloc(st.st_size + 1)) == NULL)
usr.sbin/ppp/ipcp.c
198
else if ((ipcp->ns.resolv = (char *)malloc(st.st_size + 1)) == NULL) {
usr.sbin/ppp/libradius/radlib.c
1068
h = (struct rad_handle *)malloc(sizeof(struct rad_handle));
usr.sbin/ppp/libradius/radlib.c
1395
if ((attr = malloc(len + 6)) == NULL) {
usr.sbin/ppp/libradius/radlib.c
1469
demangled = malloc(mlen);
usr.sbin/ppp/libradius/radlib.c
1567
demangled = malloc(*len);
usr.sbin/ppp/libradius/radlib.c
935
s = malloc(len + 1);
usr.sbin/ppp/mbuf.c
140
*mb = (struct mbucket *)malloc(BUCKET_CHUNK * size);
usr.sbin/ppp/nat_cmd.c
522
fptr = malloc(bp->m_len);
usr.sbin/ppp/ncp.c
101
ncp->cfg.urgent.tcp.port = (u_short *)malloc(NDEFTCPPORTS * sizeof(u_short));
usr.sbin/ppp/netgraph.c
487
if ((dev = malloc(sizeof *dev)) == NULL)
usr.sbin/ppp/netgraph.c
732
if ((dev = malloc(sizeof *dev)) == NULL) {
usr.sbin/ppp/pap.c
259
if ((key = malloc(klen+1)) == NULL) {
usr.sbin/ppp/physical.c
158
p = (struct physical *)malloc(sizeof(struct physical));
usr.sbin/ppp/physical.c
714
iov[*niov].iov_base = malloc(sz);
usr.sbin/ppp/pred.c
159
state = (struct pred1_state *)malloc(sizeof(struct pred1_state));
usr.sbin/ppp/pred.c
169
state = (struct pred1_state *)malloc(sizeof(struct pred1_state));
usr.sbin/ppp/prompt.c
314
struct prompt *p = (struct prompt *)malloc(sizeof(struct prompt));
usr.sbin/ppp/radius.c
213
*buf = malloc(*len);
usr.sbin/ppp/route.c
243
if ((buf = malloc(needed)) == NULL)
usr.sbin/ppp/route.c
266
newifs = (char **)malloc(sizeof(char *) * have);
usr.sbin/ppp/route.c
281
ifs[ifm->ifm_index-1] = (char *)malloc(dl->sdl_nlen+1);
usr.sbin/ppp/route.c
347
sp = malloc(needed);
usr.sbin/ppp/route.c
405
sp = malloc(needed);
usr.sbin/ppp/route.c
496
sp = malloc(needed);
usr.sbin/ppp/route.c
617
r = (struct sticky_route *)malloc(sizeof(struct sticky_route));
usr.sbin/ppp/tty.c
688
if ((dev = malloc(sizeof *dev)) == NULL) {
usr.sbin/ppp/udp.c
206
if ((dev = malloc(sizeof *dev)) == NULL) {
usr.sbin/ppp/udp.c
301
if ((dev = malloc(sizeof *dev)) == NULL) {
usr.sbin/pstat/pstat.c
592
if ((mt = malloc(sizeof(struct mtab))) == NULL)
usr.sbin/pstat/pstat.c
645
if ((vnodebase = malloc(copysize)) == NULL)
usr.sbin/pstat/pstat.c
672
if ((vbuf = malloc((numvnodes + 20) * (VPTRSZ + VNODESZ))) == NULL)
usr.sbin/pstat/pstat.c
721
if ((tty = malloc(ttyspace * sizeof(*tty))) == NULL)
usr.sbin/pw/bitmap.c
42
bm.map = malloc(szmap);
usr.sbin/pw/cpdir.c
104
copybuf = malloc(4096);
usr.sbin/pw/edgroup.c
85
char *line = malloc(linelen);
usr.sbin/pw/edgroup.c
86
char *outl = malloc(outlen);
usr.sbin/pw/edgroup.c
87
char **mems = malloc(memlen * sizeof(char *));
usr.sbin/pw/fileupd.c
104
char *line = malloc(linesize);
usr.sbin/pw/grupd.c
48
char * d = malloc(strlen(dir)+1);
usr.sbin/pw/pw.c
217
config = malloc(MAXPATHLEN);
usr.sbin/pw/pw.c
445
struct carg *ca = malloc(sizeof(struct carg));
usr.sbin/pw/pw_conf.c
214
if ((q = malloc(l)) != NULL)
usr.sbin/pw/pw_conf.c
234
char *buf = malloc(buflen);
usr.sbin/pw/pw_conf.c
391
char *buf = malloc(len);
usr.sbin/pw/pw_user.c
355
passtmp = malloc(strlen(pwd->pw_passwd) + sizeof(locked_str));
usr.sbin/pw/pwupd.c
54
char * d = malloc(strlen(dir)+1);
usr.sbin/quot/quot.c
115
&& !(ip = (struct ufs1_dinode *)malloc(INOSZ(super))))
usr.sbin/quot/quot.c
249
if ((usr->name = (char *)malloc(7)))
usr.sbin/quot/quot.c
253
malloc(strlen(pwd->pw_name) + 1)))
usr.sbin/quot/quot.c
342
if (!(fsizes = (struct fsizes *)malloc(sizeof(struct fsizes))))
usr.sbin/quot/quot.c
373
malloc(sizeof(struct fsizes))))
usr.sbin/quot/quot.c
423
if (!(usrs = (struct user *)malloc(nusers * sizeof(struct user))))
usr.sbin/rarpd/rarpd.c
227
ii = (struct if_info *)malloc(sizeof(*ii));
usr.sbin/rarpd/rarpd.c
244
ii2 = (struct if_info *)malloc(sizeof(*ii2));
usr.sbin/rarpd/rarpd.c
482
buf = malloc(bufsize);
usr.sbin/resident/resident.c
72
if ((buf = malloc(res_total)) != NULL) {
usr.sbin/rip6query/rip6query.c
136
if ((ripbuf = (struct rip6 *)malloc(BUFSIZ)) == NULL) {
usr.sbin/rmt/rmt.c
221
record = malloc(size);
usr.sbin/route6d/route6d.c
2199
if ((buf = malloc(msize)) == NULL) {
usr.sbin/route6d/route6d.c
2386
if ((buf = malloc(msize)) == NULL) {
usr.sbin/route6d/route6d.c
253
#define MALLOC(type) ((type *)malloc(sizeof(type)))
usr.sbin/route6d/route6d.c
2964
iff_obj = (struct iff *)malloc(sizeof(struct iff));
usr.sbin/route6d/route6d.c
2982
rrt = (struct riprt *)malloc(sizeof(struct riprt));
usr.sbin/route6d/route6d.c
3154
char *q = (char *)malloc(strlen(p) + 1);
usr.sbin/route6d/route6d.c
3275
malloc(sizeof(*index2ifc) * nindex2ifc);
usr.sbin/route6d/route6d.c
331
if ((ripbuf = (struct rip6 *)malloc(RIP6_MAXMTU)) == NULL)
usr.sbin/route6d/route6d.c
384
if ((ripbuf = (struct rip6 *)malloc(RIP6_MAXMTU)) == NULL) {
usr.sbin/rpc.lockd/lockd.c
183
hosts = malloc(sizeof(char**));
usr.sbin/rpc.lockd/lockd.c
363
res = malloc(sizeof(struct addrinfo));
usr.sbin/rpc.lockd/lockd.c
371
sin = malloc(sizeof(struct sockaddr_in));
usr.sbin/rpc.lockd/lockd.c
382
sin6 = malloc(sizeof(struct sockaddr_in6));
usr.sbin/rpc.lockd/lockd.c
461
svcport_str = malloc(NI_MAXSERV * sizeof(char));
usr.sbin/rpc.lockd/lockd.c
479
servaddr.buf = malloc(res->ai_addrlen);
usr.sbin/rpc.lockd/lockd_lock.c
152
newfl = malloc(sizeof(struct file_lock));
usr.sbin/rpc.lockd/lockd_lock.c
167
newfl->client.oh.n_bytes = malloc(lckarg->alock.oh.n_len);
usr.sbin/rpc.lockd/lockd_lock.c
180
newfl->client_cookie.n_bytes = malloc(lckarg->cookie.n_len);
usr.sbin/rpc.lockd/lockd_lock.c
676
hp = malloc(sizeof(struct host));
usr.sbin/rpc.statd/procs.c
107
lp = (MonList *)malloc(sizeof(MonList));
usr.sbin/rpc.umntall/mounttab.c
115
if ((mtabp = malloc(sizeof (struct mtablist))) == NULL) {
usr.sbin/rpc.umntall/rpc.umntall.c
240
if ((mntbuf = malloc(bufsize)) == NULL)
usr.sbin/rpc.ypupdated/update.c
172
com = malloc((unsigned) strlen(command) + 6);
usr.sbin/rpc.ypupdated/update.c
254
tmpname = malloc(strlen(filename) + 4);
usr.sbin/rpcbind/check_bound.c
112
fdl = malloc(sizeof (struct fdlist));
usr.sbin/rpcbind/rpcb_stat.c
128
al = (rpcbs_addrlist *) malloc(sizeof (rpcbs_addrlist));
usr.sbin/rpcbind/rpcb_stat.c
177
rl = (rpcbs_rmtcalllist *) malloc(sizeof (rpcbs_rmtcalllist));
usr.sbin/rpcbind/rpcb_svc_4.c
389
rp = malloc(sizeof (rpcb_entry_list));
usr.sbin/rpcbind/rpcb_svc_com.c
1060
if ((dst->buf = malloc(src->len)) == NULL)
usr.sbin/rpcbind/rpcb_svc_com.c
1238
buffer = malloc(RPC_BUF_MAX);
usr.sbin/rpcbind/rpcb_svc_com.c
1420
pml = malloc(sizeof (struct pmaplist));
usr.sbin/rpcbind/rpcb_svc_com.c
175
rbl = malloc(sizeof (RPCBLIST));
usr.sbin/rpcbind/rpcb_svc_com.c
511
rmt = malloc(sizeof (struct rmtcallfd_list));
usr.sbin/rpcbind/rpcb_svc_com.c
645
buf_alloc = malloc(sendsz);
usr.sbin/rpcbind/rpcb_svc_com.c
807
outbuf_alloc = malloc(sendsz);
usr.sbin/rpcbind/rpcbind.c
417
taddr.addr.buf = malloc(addrlen);
usr.sbin/rpcbind/rpcbind.c
469
taddr.addr.buf = malloc(addrlen);
usr.sbin/rpcbind/rpcbind.c
521
pml = malloc(sizeof (struct pmaplist));
usr.sbin/rpcbind/rpcbind.c
561
pml = malloc(sizeof (struct pmaplist));
usr.sbin/rpcbind/rpcbind.c
572
pml = malloc (sizeof (struct pmaplist));
usr.sbin/rpcbind/rpcbind.c
650
rbl = malloc(sizeof (rpcblist));
usr.sbin/rpcbind/util.c
309
local_in4 = (struct sockaddr_in *)malloc(sizeof *local_in4);
usr.sbin/rpcbind/util.c
324
local_in6 = (struct sockaddr_in6 *)malloc(sizeof *local_in6);
usr.sbin/rrenumd/parser.y
204
ss = (struct sockaddr_storage *)malloc(sizeof(*ss));
usr.sbin/rrenumd/parser.y
210
malloc(sizeof(struct dst_list));
usr.sbin/rrenumd/parser.y
221
sin = (struct sockaddr_in *)malloc(sizeof(*sin));
usr.sbin/rrenumd/parser.y
228
malloc(sizeof(struct dst_list));
usr.sbin/rrenumd/parser.y
239
sin6 = (struct sockaddr_in6 *)malloc(sizeof(*sin6));
usr.sbin/rrenumd/parser.y
246
malloc(sizeof(struct dst_list));
usr.sbin/rrenumd/parser.y
331
malloc(sizeof(struct payload_list));
usr.sbin/rrenumd/rrenumd.c
174
(rcvcmsgbuf = (u_char *)malloc(rcvcmsglen)) == NULL) {
usr.sbin/rrenumd/rrenumd.c
187
(sndcmsgbuf = (u_char *)malloc(sndcmsglen)) == NULL) {
usr.sbin/rtadvctl/rtadvctl.c
438
ifi = malloc(sizeof(*ifi));
usr.sbin/rtadvctl/rtadvctl.c
450
ifi = malloc(sizeof(*ifi));
usr.sbin/rtadvd/config.c
1366
if ((buf = malloc(packlen)) == NULL) {
usr.sbin/rtadvd/control.c
358
cp->cp_ifname = malloc(len + 1);
usr.sbin/rtadvd/control.c
373
cp->cp_key = malloc(len + 1);
usr.sbin/rtadvd/control.c
388
cp->cp_val = malloc(len + 1);
usr.sbin/rtadvd/control_server.c
144
p = malloc(len);
usr.sbin/rtadvd/control_server.c
181
p = malloc(sizeof(*ifi));
usr.sbin/rtadvd/control_server.c
222
p = malloc(sizeof(*rai));
usr.sbin/rtadvd/control_server.c
268
p = malloc(sizeof(*rtimer));
usr.sbin/rtadvd/control_server.c
317
p = malloc(len);
usr.sbin/rtadvd/control_server.c
366
p = malloc(len);
usr.sbin/rtadvd/control_server.c
424
p = malloc(len);
usr.sbin/rtadvd/control_server.c
493
p = malloc(len);
usr.sbin/rtadvd/if.c
428
if ((msg = malloc(len)) == NULL) {
usr.sbin/rtadvd/rtadvd.c
1494
nol = malloc(sizeof(*nol));
usr.sbin/rtadvd/rtadvd.c
1545
rcvcmsgbuf = (char *)malloc(rcvcmsgbuflen);
usr.sbin/rtadvd/rtadvd.c
1553
sndcmsgbuf = (char *)malloc(sndcmsgbuflen);
usr.sbin/rtadvd/rtadvd.c
977
sol = (struct soliciter *)malloc(sizeof(*sol));
usr.sbin/rtadvd/rtadvd.h
36
p = malloc(sizeof(*p)); \
usr.sbin/rtadvd/timer.c
118
rat = malloc(sizeof(*rat));
usr.sbin/rtsold/if.c
260
if ((buf = malloc(len)) == NULL)
usr.sbin/rtsold/if.c
293
if ((ret_sdl = malloc(sdl->sdl_len)) == NULL)
usr.sbin/rtsold/if.c
376
iflist = (struct ifreq *)malloc(maxif * BUFSIZ); /* XXX */
usr.sbin/rtsold/probe.c
76
(sndcmsgbuf = (u_char *)malloc(scmsglen)) == NULL) {
usr.sbin/rtsold/rtsol.c
92
if (rcvcmsgbuf == NULL && (rcvcmsgbuf = malloc(rcvcmsglen)) == NULL) {
usr.sbin/rtsold/rtsol.c
97
if (sndcmsgbuf == NULL && (sndcmsgbuf = malloc(sndcmsglen)) == NULL) {
usr.sbin/rtsold/rtsold.c
338
if ((ifinfo = malloc(sizeof(*ifinfo))) == NULL) {
usr.sbin/rtsold/rtsold.c
445
if ((buf = malloc(packlen)) == NULL) {
usr.sbin/rwhod/rwhod.c
604
if ((buf = malloc(needed)) == NULL)
usr.sbin/rwhod/rwhod.c
645
np = (struct neighbor *)malloc(len);
usr.sbin/sdpd/provider.c
98
provider->data = malloc(datalen);
usr.sbin/slstat/slstat.c
165
sc = (struct sl_softc *)malloc(AMT);
usr.sbin/slstat/slstat.c
166
osc = (struct sl_softc *)malloc(AMT);
usr.sbin/sshlockout/sshlockout.c
410
iphist_t *ip = malloc(sizeof(*ip));
usr.sbin/syslogd/syslogd.c
2565
p = malloc(sizeof(struct deadq_entry));
usr.sbin/syslogd/syslogd.c
2665
socks = malloc((maxs+1) * sizeof(int));
usr.sbin/syslogd/syslogd.c
416
if ((fx = malloc(sizeof(struct funix))) == NULL)
usr.sbin/sysvipcd/shmd.c
458
handle = shmseg->shm_internal = malloc(sizeof(struct shm_handle));
usr.sbin/sysvipcd/shmd.c
632
pidatt = malloc(sizeof(*pidatt));
usr.sbin/sysvipcd/shmd.c
640
idatt = malloc(sizeof(*idatt));
usr.sbin/sysvipcd/shmd.c
853
shmsegs = malloc(shmalloced * sizeof(shmsegs[0]));
usr.sbin/sysvipcd/sysvipcd.c
135
cl = malloc(sizeof(*cl));
usr.sbin/tcpdrop/tcpdrop.c
150
tcp = malloc(len);
usr.sbin/traceroute/traceroute.c
522
outpacket = (u_char *)malloc(datalen);
usr.sbin/traceroute/traceroute.c
743
if ((fdsp = (fd_set *)malloc(fdsn)) == NULL)
usr.sbin/traceroute6/traceroute6.c
606
outpacket = (struct opacket *)malloc((unsigned)datalen);
usr.sbin/traceroute6/traceroute6.c
622
if ((rcvcmsgbuf = malloc(rcvcmsglen)) == NULL) {
usr.sbin/traceroute6/traceroute6.c
826
if ((fdsp = (fd_set *)malloc(fdsn)) == NULL)
usr.sbin/tzsetup/tzsetup.c
408
zp = malloc(sizeof(*zp));
usr.sbin/tzsetup/tzsetup.c
562
malloc(sizeof(dialogMenuItem) *
usr.sbin/tzsetup/tzsetup.c
589
cp->submenu = malloc(cp->nzones * sizeof(*dmi));
usr.sbin/uefisign/child.c
69
buf = malloc(len);
usr.sbin/uefisign/uefisign.c
128
hex = malloc(hex_len);
usr.sbin/usbconfig/dump.c
455
pbuf = malloc(256);
usr.sbin/usbconfig/usbconfig.c
781
opt->buffer = malloc(opt->setup.wLength);
usr.sbin/usbdump/usbdump.c
173
puf = malloc(sizeof(struct usb_filt));
usr.sbin/usbdump/usbdump.c
195
dynamic_insn = malloc(((len * 5) + 1) * sizeof(struct bpf_insn));
usr.sbin/usbdump/usbdump.c
664
data = malloc(datalen);
usr.sbin/usbdump/usbdump.c
934
p->buffer = (uint8_t *)malloc(p->bufsize);
usr.sbin/vidcontrol/vidcontrol.c
413
fontmap = (char*) malloc(size);
usr.sbin/vidcontrol/vidcontrol.c
440
fontmap = (char*) malloc(size);
usr.sbin/vknetd/bridge.c
51
bridge = malloc(sizeof(struct bridge));
usr.sbin/vknetd/vknetd.c
317
info = malloc(sizeof(*info));
usr.sbin/vknetd/vknetd.c
391
info = malloc(sizeof(*info));
usr.sbin/vknetd/vknetd.c
422
pkt = malloc(MAXPKT);
usr.sbin/vknetd/vknetd.c
474
pkt = malloc(MAXPKT);
usr.sbin/vnconfig/vnconfig.c
386
char *buf = malloc(ZBUFSIZE);
usr.sbin/vnconfig/vnconfig.c
622
vndisks[ix].dev = malloc(cp - sp);
usr.sbin/vnconfig/vnconfig.c
636
vndisks[ix].file = malloc(cp - sp);
usr.sbin/vnconfig/vnconfig.c
676
vnp->oarg = malloc(strlen(oarg) + 1);
usr.sbin/vnconfig/vnconfig.c
690
rawbuf = malloc(len + 2);
usr.sbin/watch/watch.c
347
if (!(buf = (char *) malloc(b_size)))
usr.sbin/watch/watch.c
423
if (!(buf = (char *) malloc(b_size / 2)))
usr.sbin/watch/watch.c
430
if (!(buf = (char *) malloc(b_size)))
usr.sbin/ypbind/ypbind.c
197
ypdb = (struct _dom_binding *)malloc(sizeof *ypdb);
usr.sbin/ypbind/ypbind.c
446
ypbindlist = (struct _dom_binding *)malloc(sizeof *ypbindlist);
usr.sbin/ypbind/ypbind.c
874
ypdb = (struct _dom_binding *)malloc(sizeof *ypdb);
usr.sbin/yppush/yppush_main.c
377
if ((job = (struct jobs *)malloc(sizeof (struct jobs))) == NULL) {
usr.sbin/yppush/yppush_main.c
504
if ((tmp = (struct hostlist *)malloc(sizeof(struct hostlist))) == NULL) {
usr.sbin/yppush/yppush_main.c
580
yppush_master = malloc(data.size + 1);
usr.sbin/ypserv/yp_access.c
124
securenets = (struct securenet *)malloc(sizeof(struct securenet));
usr.sbin/ypserv/yp_access.c
149
tmp = (struct securenet *)malloc(sizeof(struct securenet));
usr.sbin/ypserv/yp_dblookup.c
104
q = (struct circleq_entry *)malloc(sizeof(struct circleq_entry));
usr.sbin/ypserv/yp_dblookup.c
110
q->dbptr = (struct dbent *)malloc(sizeof(struct dbent));
usr.sbin/ypserv/yp_dnslookup.c
151
q = (struct circleq_dnsentry *)malloc(sizeof(struct circleq_dnsentry));
usr.sbin/ypserv/yp_server.c
700
malloc(sizeof(struct ypmaplist))) == NULL) {
usr.sbin/zic/scheck.c
21
fbuf = malloc(2 * strlen(format) + 4);
usr.sbin/zic/zdump.c
308
fakeenv = malloc((i + 2) * sizeof *fakeenv);
usr.sbin/zic/zdump.c
310
|| (fakeenv[0] = malloc(longest + 4)) == NULL) {
usr.sbin/zic/zic.c
358
#define emalloc(size) memcheck(malloc(size))