xmalloc 26 alias.c *argv = xmalloc(sizeof(**argv) * size); xmalloc 41 alloc.c s->p = xmalloc(BLOCKING * node_size); xmalloc 182 archive-zip.c buffer = xmalloc(maxsize); xmalloc 564 archive-zip.c zip_dir = xmalloc(ZIP_DIRECTORY_MIN_SIZE); xmalloc 96 attr.c a = xmalloc(sizeof(*a) + len + 1); xmalloc 802 attr.c *check = xmalloc(sizeof(**check) * count); xmalloc 413 bisect.c current_bad_oid = xmalloc(sizeof(*current_bad_oid)); xmalloc 712 bisect.c struct commit **rev = xmalloc(len * sizeof(*rev)); xmalloc 701 builtin/apply.c char *ret = xmalloc(root_len + len + 1); xmalloc 820 builtin/apply.c stamp = xmalloc(sizeof(*stamp)); xmalloc 1756 builtin/apply.c stream.next_out = out = xmalloc(inflated_size); xmalloc 2197 builtin/apply.c new = postimage->buf = xmalloc(postlen); xmalloc 2639 builtin/apply.c result = xmalloc(img->len + insert_count - remove_count + 1); xmalloc 2698 builtin/apply.c oldlines = xmalloc(size); xmalloc 4507 builtin/apply.c root = new_root = xmalloc(root_len + 2); xmalloc 764 builtin/blame.c new_entry = xmalloc(sizeof(*new_entry)); xmalloc 769 builtin/blame.c new_entry = xmalloc(sizeof(*new_entry)); xmalloc 783 builtin/blame.c new_entry = xmalloc(sizeof(*new_entry)); xmalloc 791 builtin/blame.c new_entry = xmalloc(sizeof(*new_entry)); xmalloc 2044 builtin/blame.c sb->lineno = lineno = xmalloc(sizeof(*sb->lineno) * (num + 1)); xmalloc 23 builtin/check-ref-format.c char *ret = xmalloc(strlen(refname) + 1); xmalloc 572 builtin/clean.c chosen = xmalloc(sizeof(int) * stuff->nr); xmalloc 630 builtin/clean.c result = xmalloc(sizeof(int)); xmalloc 189 builtin/config.c key_regexp = (regex_t*)xmalloc(sizeof(regex_t)); xmalloc 210 builtin/config.c regexp = (regex_t*)xmalloc(sizeof(regex_t)); xmalloc 263 builtin/config.c normalized = xmalloc(64); xmalloc 382 builtin/config.c matched = xmalloc(sizeof(*matched)); xmalloc 107 builtin/describe.c e = xmalloc(sizeof(struct commit_name)); xmalloc 123 builtin/fast-export.c ret = xmalloc(sizeof(*ret)); xmalloc 1024 builtin/fast-export.c refspecs_str = xmalloc(sizeof(*refspecs_str) * refspecs_list.nr); xmalloc 188 builtin/fetch.c struct object_id *old_oid = xmalloc(sizeof(*old_oid)); xmalloc 421 builtin/fsck.c struct sha1_entry *entry = xmalloc(sizeof(*entry)); xmalloc 357 builtin/grep.c const char **argv = xmalloc(sizeof(const char *) * (path_list->nr + 1)); xmalloc 302 builtin/help.c char *p = xmalloc(pre_len + cmd_len + 1); xmalloc 558 builtin/index-pack.c inbuf = xmalloc((len < 64*1024) ? len : 64*1024); xmalloc 736 builtin/index-pack.c data->buf = xmalloc(size); xmalloc 1349 builtin/index-pack.c sorted_by_pos = xmalloc(nr_ref_deltas * sizeof(*sorted_by_pos)); xmalloc 1762 builtin/index-pack.c idx_objects = xmalloc((nr_objects) * sizeof(struct pack_idx_entry *)); xmalloc 324 builtin/init-db.c char *path = xmalloc(len + 40); xmalloc 98 builtin/ls-remote.c char *p = xmalloc(len + 3); xmalloc 143 builtin/mailinfo.c *out = xmalloc(sizeof(struct strbuf)); xmalloc 183 builtin/mailinfo.c struct strbuf *boundary = xmalloc(sizeof(struct strbuf)); xmalloc 452 builtin/mailinfo.c struct strbuf *out = xmalloc(sizeof(struct strbuf)); xmalloc 475 builtin/mailinfo.c struct strbuf *out = xmalloc(sizeof(struct strbuf)); xmalloc 255 builtin/merge-base.c rev = xmalloc(argc * sizeof(*rev)); xmalloc 49 builtin/merge-recursive.c unsigned char *sha = xmalloc(20); xmalloc 177 builtin/merge-tree.c char *path = xmalloc(traverse_path_len(info, n) + 1); xmalloc 27 builtin/mktree.c ent = entries[used++] = xmalloc(sizeof(**entries) + len + 1); xmalloc 27 builtin/mv.c const char **result = xmalloc((count + 1) * sizeof(const char *)); xmalloc 52 builtin/mv.c char *with_slash = xmalloc(len + 2); xmalloc 43 builtin/name-rev.c name = xmalloc(sizeof(rev_name)); xmalloc 59 builtin/name-rev.c char *new_name = xmalloc(len + xmalloc 132 builtin/pack-objects.c out = xmalloc(maxsize); xmalloc 627 builtin/pack-objects.c struct object_entry **wo = xmalloc(to_pack.nr_objects * sizeof(*wo)); xmalloc 772 builtin/pack-objects.c written_list = xmalloc(to_pack.nr_objects * sizeof(*written_list)); xmalloc 1135 builtin/pack-objects.c nent = xmalloc(sizeof(*nent)); xmalloc 2132 builtin/pack-objects.c delta_list = xmalloc(to_pack.nr_objects * sizeof(*delta_list)); xmalloc 56 builtin/pack-redundant.c new = xmalloc(sizeof(struct llist_item) * BLKSIZE); xmalloc 74 builtin/pack-redundant.c *list = xmalloc(sizeof(struct llist)); xmalloc 209 builtin/pack-redundant.c struct pack_list *p = xmalloc(sizeof(struct pack_list)); xmalloc 241 builtin/pack-redundant.c ret = xmalloc(sizeof(struct pack_list)); xmalloc 311 builtin/pack-redundant.c new_pll = xmalloc(sizeof(*new_pll)); xmalloc 324 builtin/pack-redundant.c new_pll = xmalloc(sizeof(*new_pll)); xmalloc 453 builtin/pack-redundant.c new_perm = xmalloc(sizeof(struct pll)); xmalloc 651 builtin/pack-redundant.c sha1 = xmalloc(20); xmalloc 1045 builtin/receive-pack.c argv = xmalloc(sizeof(*argv) * (2 + argc)); xmalloc 1579 builtin/receive-pack.c si->used_shallow = xmalloc(sizeof(*si->used_shallow) * xmalloc 1646 builtin/receive-pack.c ref_status = xmalloc(sizeof(*ref_status) * ref->nr); xmalloc 391 builtin/reflog.c e = xmalloc(sizeof(*e) + namelen + 1); xmalloc 135 builtin/remote-ext.c ret = xmalloc((arguments + 1) * sizeof(char *)); xmalloc 160 builtin/remote-ext.c buffer = xmalloc(bufferspace); xmalloc 498 builtin/remote.c r = xmalloc(sizeof(*r)); xmalloc 168 builtin/revert.c opts->revs = xmalloc(sizeof(*opts->revs)); xmalloc 79 builtin/show-branch.c commit->util = xmalloc(sizeof(struct commit_name)); xmalloc 141 builtin/unpack-objects.c struct delta_info *info = xmalloc(sizeof(*info)); xmalloc 52 builtin/worktree.c path = xmalloc(len + 1); xmalloc 82 cache-tree.c down = xmalloc(sizeof(*down) + pathlen + 1); xmalloc 167 column.c data.len = xmalloc(sizeof(*data.len) * list->nr); xmalloc 176 column.c empty_cell = xmalloc(initial_width + 1); xmalloc 39 combine-diff.c p = xmalloc(combine_diff_path_size(num_parent, len)); xmalloc 295 combine-diff.c blob = xmalloc(100); xmalloc 322 combine-diff.c lline = xmalloc(sizeof(*lline) + len + 1); xmalloc 1046 combine-diff.c result = xmalloc(len + 1); xmalloc 1268 combine-diff.c pair = xmalloc(sizeof(*pair)); xmalloc 1375 combine-diff.c parents_sha1 = xmalloc(nparent * sizeof(parents_sha1[0])); xmalloc 1486 combine-diff.c o = xmalloc(sizeof(*o) * num_paths); xmalloc 150 commit.c graft = xmalloc(sizeof(*graft) + GIT_SHA1_RAWSZ * i); xmalloc 430 commit.c struct commit_list *new_list = xmalloc(sizeof(struct commit_list)); xmalloc 915 commit.c filled_index = xmalloc(sizeof(*filled_index) * (cnt - 1)); xmalloc 1598 commit.c desc = xmalloc(sizeof(*desc)); xmalloc 1626 commit.c struct commit_list *new = xmalloc(sizeof(struct commit_list)); xmalloc 755 compat/mingw.c d = q = xmalloc(len+n+3); xmalloc 838 compat/mingw.c path = xmalloc((n+1)*sizeof(char *)); xmalloc 923 compat/mingw.c tmpenv = xmalloc((size + i) * sizeof(char*)); xmalloc 1014 compat/mingw.c wargs = xmalloc((2 * args.len + 1) * sizeof(wchar_t)); xmalloc 1043 compat/mingw.c struct pinfo_t *info = xmalloc(sizeof(struct pinfo_t)); xmalloc 1113 compat/mingw.c argv2 = xmalloc(sizeof(*argv) * (argc+1)); xmalloc 1291 compat/mingw.c ai = xmalloc(sizeof(struct addrinfo)); xmalloc 10 compat/mmap.c start = xmalloc(length); xmalloc 90 compat/precompose_utf8.c PREC_DIR *prec_dir = xmalloc(sizeof(PREC_DIR)); xmalloc 91 compat/precompose_utf8.c prec_dir->dirent_nfc = xmalloc(sizeof(dirent_prec_psx)); xmalloc 58 compat/qsort.c char *tmp = xmalloc(size); xmalloc 48 compat/win32/dirent.c dir = xmalloc(sizeof(DIR)); xmalloc 1334 config.c struct key_value_info *kv_info = xmalloc(sizeof(*kv_info)); xmalloc 1342 config.c e = xmalloc(sizeof(*e)); xmalloc 1881 config.c *store_key = xmalloc(strlen(key) + 1); xmalloc 2026 config.c store.value_regex = (regex_t*)xmalloc(sizeof(regex_t)); xmalloc 554 connect.c proxy = xmalloc(sizeof(*proxy)); xmalloc 720 connect.c conn = xmalloc(sizeof(*conn)); xmalloc 79 contrib/convert-objects/convert-objects.c char *new = xmalloc(size); xmalloc 238 contrib/convert-objects/convert-objects.c char *new = xmalloc(size + 100); xmalloc 297 contrib/convert-objects/convert-objects.c buffer = xmalloc(size); xmalloc 99 contrib/credential/wincred/git-credential-wincred.c buf = xmalloc(len); xmalloc 239 contrib/credential/wincred/git-credential-wincred.c WCHAR *wstr = xmalloc(sizeof(WCHAR) * wlen); xmalloc 273 contrib/examples/builtin-fetch--tool.c keep = xmalloc(len); xmalloc 1147 convert.c cascade = xmalloc(sizeof(*cascade)); xmalloc 1290 convert.c struct ident_filter *ident = xmalloc(sizeof(*ident)); xmalloc 144 csum-file.c struct sha1file *f = xmalloc(sizeof(*f)); xmalloc 1383 daemon.c cld_argv = xmalloc(sizeof (char *) * (argc + 2)); xmalloc 122 diff-lib.c dpath = xmalloc(combine_diff_path_size(5, path_len)); xmalloc 336 diff-lib.c p = xmalloc(combine_diff_path_size(2, pathlen)); xmalloc 1096 diff.c struct diff_options *o = xmalloc(sizeof(struct diff_options)); xmalloc 1111 diff.c xmalloc(sizeof(regex_t)); xmalloc 2148 diff.c deflated = xmalloc(bound); xmalloc 2612 diff.c struct diff_filespec *spec = xmalloc(sizeof(*spec) + namelen + 1); xmalloc 2712 diff.c char *data = xmalloc(100), *dirty = ""; xmalloc 56 diffcore-delta.c new = xmalloc(sizeof(*orig) + sizeof(struct spanhash) * sz); xmalloc 133 diffcore-delta.c hash = xmalloc(sizeof(*hash) + sizeof(struct spanhash) * (1<<i)); xmalloc 55 diffcore-order.c order = xmalloc(sizeof(*order) * cnt); xmalloc 123 diffcore-order.c o = xmalloc(sizeof(*o) * q->nr); xmalloc 322 diffcore-rename.c struct file_similarity *entry = xmalloc(sizeof(*entry)); xmalloc 507 dir.c x = xmalloc(sizeof(*x) + patternlen + 1); xmalloc 513 dir.c x = xmalloc(sizeof(*x)); xmalloc 630 dir.c d = xmalloc(sizeof(*d) + len + 1); xmalloc 716 dir.c buf = xmalloc(size+1); xmalloc 1167 dir.c ent = xmalloc(sizeof(*ent) + len + 1); xmalloc 1928 dir.c dir->untracked->root = xmalloc(len); xmalloc 2339 dir.c ouc = xmalloc(sizeof(*ouc) + len + 1); xmalloc 2450 dir.c ud.untracked = xmalloc(sizeof(*ud.untracked) * ud.untracked_nr); xmalloc 2457 dir.c ud.dirs = xmalloc(sizeof(*ud.dirs) * ud.dirs_nr); xmalloc 2464 dir.c *untracked_ = untracked = xmalloc(sizeof(*untracked) + len); xmalloc 2577 dir.c rd.ucd = xmalloc(sizeof(*rd.ucd) * len); xmalloc 9 entry.c char *buf = xmalloc(path_len + 1); xmalloc 148 environment.c char *buf = xmalloc(strlen(git_dir) + strlen(path) + 2); xmalloc 24 ewah/ewok.h # define ewah_malloc xmalloc xmalloc 117 exec_cmd.c nargv = xmalloc(sizeof(*nargv) * (argc + 2)); xmalloc 549 fast-import.c b = xmalloc(sizeof(struct object_entry_pool) xmalloc 622 fast-import.c return xmalloc(len); xmalloc 625 fast-import.c p = xmalloc(sizeof(struct mem_pool) + mem_pool_alloc); xmalloc 816 fast-import.c avail_tree_entry = e = xmalloc(n * sizeof(struct tree_entry)); xmalloc 898 fast-import.c idx = xmalloc(object_count * sizeof(*idx)); xmalloc 1078 fast-import.c s.next_out = out = xmalloc(s.avail_out); xmalloc 1167 fast-import.c unsigned char *in_buf = xmalloc(in_sz); xmalloc 1168 fast-import.c unsigned char *out_buf = xmalloc(out_sz); xmalloc 2654 fast-import.c n = xmalloc(sizeof(*n)); xmalloc 94 fsck.c char *q = xmalloc(len); xmalloc 202 fsck.c int *msg_type = xmalloc(sizeof(int) * FSCK_MSG_MAX); xmalloc 711 git-compat-util.h # define xalloca(size) (xmalloc(size)) xmalloc 715 git-compat-util.h extern void *xmalloc(size_t size); xmalloc 248 git.c alias_argv = xmalloc(sizeof(*alias_argv) * (argc + 1)); xmalloc 208 graph.c struct git_graph *graph = xmalloc(sizeof(struct git_graph)); xmalloc 237 graph.c graph->columns = xmalloc(sizeof(struct column) * xmalloc 239 graph.c graph->new_columns = xmalloc(sizeof(struct column) * xmalloc 241 graph.c graph->mapping = xmalloc(sizeof(int) * 2 * graph->column_capacity); xmalloc 242 graph.c graph->new_mapping = xmalloc(sizeof(int) * 2 * graph->column_capacity); xmalloc 284 grep.c struct grep_opt *ret = xmalloc(sizeof(struct grep_opt)); xmalloc 1675 grep.c gs->identifier = xmalloc(20); xmalloc 1744 grep.c data = xmalloc(size + 1); xmalloc 14 help.c struct cmdname *ent = xmalloc(sizeof(*ent) + len + 1); xmalloc 169 http-backend.c char *buf = xmalloc(buf_alloc); xmalloc 281 http-backend.c unsigned char *buf = xmalloc(alloc); xmalloc 646 http-push.c request = xmalloc(sizeof(*request)); xmalloc 684 http-push.c request = xmalloc(sizeof(*request)); xmalloc 1271 http-push.c struct object_list *entry = xmalloc(sizeof(struct object_list)); xmalloc 1957 http-push.c old_sha1_hex = xmalloc(42); xmalloc 154 http-walker.c newreq = xmalloc(sizeof(*newreq)); xmalloc 295 http-walker.c newalt = xmalloc(sizeof(*newalt)); xmalloc 561 http-walker.c struct walker_data *data = xmalloc(sizeof(struct walker_data)); xmalloc 562 http-walker.c struct walker *walker = xmalloc(sizeof(struct walker)); xmalloc 564 http-walker.c data->alt = xmalloc(sizeof(*data->alt)); xmalloc 641 http.c newslot = xmalloc(sizeof(*newslot)); xmalloc 726 http.c struct fill_chain *new = xmalloc(sizeof(*new)); xmalloc 525 imap-send.c cmd = xmalloc(sizeof(struct imap_cmd)); xmalloc 875 imap-send.c challenge = xmalloc(encoded_len); xmalloc 893 imap-send.c response = xmalloc(resp_len); xmalloc 896 imap-send.c response_64 = xmalloc(ENCODED_SIZE(resp_len) + 1); xmalloc 1192 imap-send.c new = xmalloc(j + 1); xmalloc 120 khash.h new_flags = (khint32_t*)xmalloc(__ac_fsize(new_n_buckets) * sizeof(khint32_t)); \ xmalloc 43 kwset.c #define obstack_chunk_alloc xmalloc xmalloc 93 kwset.c kwset = (struct kwset *) xmalloc(sizeof (struct kwset)); xmalloc 45 levenshtein.c int *row0 = xmalloc(sizeof(int) * (len2 + 1)); xmalloc 46 levenshtein.c int *row1 = xmalloc(sizeof(int) * (len2 + 1)); xmalloc 47 levenshtein.c int *row2 = xmalloc(sizeof(int) * (len2 + 1)); xmalloc 457 line-log.c struct diff_ranges *touched = xmalloc(sizeof(*touched)); xmalloc 524 line-log.c ends = xmalloc(size * sizeof(*ends)); xmalloc 625 line-log.c struct line_log_data *ret = xmalloc(sizeof(*ret)); xmalloc 684 line-log.c d = xmalloc(sizeof(struct line_log_data)); xmalloc 756 line-log.c paths = xmalloc((count+1)*sizeof(char *)); xmalloc 1052 line-log.c struct diff_filepair *new = xmalloc(sizeof(struct diff_filepair)); xmalloc 1149 line-log.c diffqueues = xmalloc(nparents * sizeof(*diffqueues)); xmalloc 1150 line-log.c cand = xmalloc(nparents * sizeof(*cand)); xmalloc 1151 line-log.c parents = xmalloc(nparents * sizeof(*parents)); xmalloc 208 ll-merge.c result->ptr = xmalloc(result->size + 1); xmalloc 81 log-tree.c struct name_decoration *res = xmalloc(sizeof(*res) + nlen + 1); xmalloc 165 mailmap.c *repo_abbrev = xmalloc(len); xmalloc 66 merge-blobs.c void *ptr = xmalloc(size); xmalloc 45 merge-recursive.c struct merge_remote_desc *desc = xmalloc(sizeof(*desc)); xmalloc 508 merge-recursive.c re = xmalloc(sizeof(*re)); xmalloc 634 merge-recursive.c char *dirpath = xmalloc(pathlen + 2); xmalloc 121 notes-utils.c struct notes_rewrite_cfg *c = xmalloc(sizeof(struct notes_rewrite_cfg)); xmalloc 370 notes.c n = (struct non_note *) xmalloc(sizeof(struct non_note)); xmalloc 658 notes.c xmalloc(sizeof(struct tree_write_stack)); xmalloc 788 notes.c n = (struct note_delete_list *) xmalloc(sizeof(*n)); xmalloc 825 notes.c buf = (char *) xmalloc(buf_len); xmalloc 1032 notes.c trees = xmalloc((refs->nr+1) * sizeof(struct notes_tree *)); xmalloc 1086 notes.c l = (struct leaf_node *) xmalloc(sizeof(struct leaf_node)); xmalloc 288 object.c struct object_list *new_list = xmalloc(sizeof(struct object_list)); xmalloc 180 pack-bitmap.c stored = xmalloc(sizeof(struct stored_bitmap)); xmalloc 259 pack-bitmap.c idx_name = xmalloc(len + strlen(".bitmap") + 1); xmalloc 92 pack-check.c entries = xmalloc((nr_objects + 1) * sizeof(*entries)); xmalloc 86 pack-revindex.c struct revindex_entry *tmp = xmalloc(n * sizeof(*tmp)); xmalloc 89 pack-revindex.c unsigned *pos = xmalloc(BUCKETS * sizeof(*pos)); xmalloc 164 pack-revindex.c rix->revindex = xmalloc(sizeof(*rix->revindex) * (num_ent + 1)); xmalloc 233 pack-write.c buf = xmalloc(buf_sz); xmalloc 409 pathspec.c pathspec->items = item = xmalloc(sizeof(*item) * n); xmalloc 486 pathspec.c dst->items = xmalloc(sizeof(struct pathspec_item) * dst->nr); xmalloc 251 progress.c bufp = (len < sizeof(buf)) ? buf : xmalloc(len + 1); xmalloc 76 read-cache.c new = xmalloc(cache_entry_size(namelen)); xmalloc 1138 read-cache.c updated = xmalloc(size); xmalloc 1413 read-cache.c struct cache_entry *ce = xmalloc(cache_entry_size(len)); xmalloc 195 ref-filter.c char *s = xmalloc(41); xmalloc 222 ref-filter.c char *s = xmalloc(40); xmalloc 250 ref-filter.c char *s = xmalloc(41); xmalloc 271 ref-filter.c char *s = xmalloc(41); xmalloc 276 ref-filter.c char *s = xmalloc(40); xmalloc 285 ref-filter.c char *s = xmalloc(41 * num + 1); xmalloc 750 ref-filter.c char *s = xmalloc(len + 4); xmalloc 60 reflog-walk.c char *refname = xmalloc(len + 12); xmalloc 335 refs.c buf = xmalloc(strlen(refname) + 1); xmalloc 364 refs.c ref = xmalloc(sizeof(struct ref_entry) + len); xmalloc 3328 refs.c logrec = xmalloc(maxlen); xmalloc 4399 refs.c scanf_fmts = xmalloc(nr_rules * sizeof(char *) + total_len); xmalloc 171 remote-curl.c ref = xmalloc(sizeof(struct ref) + xmalloc 576 remote-curl.c gzip_body = xmalloc(gzip_size); xmalloc 653 remote-curl.c rpc->buf = xmalloc(rpc->alloc); xmalloc 702 remote-curl.c char **targets = xmalloc(nr_heads * sizeof(char*)); xmalloc 851 remote-curl.c const char **argv = xmalloc((10 + nr_spec) * sizeof(char*)); xmalloc 89 remote.c ret = xmalloc(r->rewrite[longest_i]->baselen + xmalloc 322 remote.c p = xmalloc(len + 1); xmalloc 985 remote.c cpy = xmalloc(sizeof(struct ref) + len + 1); xmalloc 62 replace_object.c struct replace_object *repl_obj = xmalloc(sizeof(*repl_obj)); xmalloc 39 revision.c n = xmalloc(len); xmalloc 3038 revision.c revs->saved_parents_slab = xmalloc(sizeof(struct saved_parents)); xmalloc 52 run-command.c struct child_to_clean *p = xmalloc(sizeof(*p)); xmalloc 169 run-command.c nargv = xmalloc(sizeof(*nargv) * (argc + 1 + 3)); xmalloc 117 send-pack.c char *buf = xmalloc(LARGE_PACKET_MAX); xmalloc 147 sequencer.c out->parent_label = xmalloc(strlen("parent of ") + abbrev_len + xmalloc 91 setup.c sanitized = xmalloc(strlen(path) + 1); xmalloc 103 setup.c sanitized = xmalloc(len + strlen(path) + 1); xmalloc 488 setup.c buf = xmalloc(st.st_size + 1); xmalloc 512 setup.c dir = xmalloc(dirlen + 1); xmalloc 220 sha1_file.c *base = xmalloc(len + 60); xmalloc 295 sha1_file.c ent = xmalloc(sizeof(*ent) + entlen); xmalloc 1153 sha1_file.c struct packed_git *p = xmalloc(sizeof(*p) + extra); xmalloc 1966 sha1_file.c poi_stack = xmalloc(sizeof(off_t)*poi_stack_alloc); xmalloc 2332 sha1_file.c delta_stack = xmalloc(sizeof(*delta_stack)*delta_stack_alloc); xmalloc 2819 sha1_file.c co->buf = xmalloc(len); xmalloc 3175 sha1_file.c header = xmalloc(strlen(type) + 32); xmalloc 3353 sha1_file.c char *buf = xmalloc(size); xmalloc 92 sha1_name.c fakeent = xmalloc(sizeof(*fakeent) + entlen); xmalloc 1308 sha1_name.c fullname = xmalloc(fullnamelen + 1); xmalloc 32 shallow.c xmalloc(sizeof(struct commit_graft)); xmalloc 96 shallow.c commit->util = xmalloc(sizeof(int)); xmalloc 119 shallow.c int *pointer = xmalloc(sizeof(int)); xmalloc 319 shallow.c info->ours = xmalloc(sizeof(*info->ours) * sa->nr); xmalloc 320 shallow.c info->theirs = xmalloc(sizeof(*info->theirs) * sa->nr); xmalloc 373 shallow.c info->free = xmalloc(COMMIT_SLAB_SIZE); xmalloc 394 shallow.c uint32_t *tmp = xmalloc(bitmap_size); /* to be freed before return */ xmalloc 495 shallow.c shallow = xmalloc(sizeof(*shallow) * (info->nr_ours + info->nr_theirs)); xmalloc 53 show-index.c } *entries = xmalloc(nr * sizeof(entries[0])); xmalloc 131 strbuf.c t = xmalloc(sizeof(struct strbuf)); xmalloc 688 strbuf.c result = xmalloc(len + 1); xmalloc 145 streaming.c st = xmalloc(sizeof(*st)); xmalloc 259 streaming.c struct git_istream *ifs = xmalloc(sizeof(*ifs)); xmalloc 94 submodule-config.c struct submodule_entry *e = xmalloc(sizeof(*e)); xmalloc 118 submodule-config.c struct submodule_entry *e = xmalloc(sizeof(*e)); xmalloc 190 submodule-config.c submodule = xmalloc(sizeof(*submodule)); xmalloc 139 submodule.c alt_odb = xmalloc(objects_directory.len + 42 + sizeof(*alt_odb)); xmalloc 33 test-mergesort.c line = xmalloc(sizeof(struct line)); xmalloc 45 test-path-utils.c char *buf = xmalloc(PATH_MAX + 1); xmalloc 116 transport-helper.c helper = xmalloc(sizeof(*helper)); xmalloc 1301 transport.c heads = xmalloc(nr_refs * sizeof(*heads)); xmalloc 138 tree-diff.c p = xmalloc(alloclen); xmalloc 286 tree-walk.c struct tree_desc_skip *skip = xmalloc(sizeof(*skip)); xmalloc 318 tree-walk.c struct name_entry *entry = xmalloc(n*sizeof(*entry)); xmalloc 118 unpack-trees.c struct cache_entry *new = xmalloc(size); xmalloc 1353 unpack-trees.c pathbuf = xmalloc(namelen + 2); xmalloc 280 userdiff.c struct notes_cache *c = xmalloc(sizeof(*c)); xmalloc 458 utf8.c out = xmalloc(outalloc); xmalloc 259 walker.c unsigned char *sha1 = xmalloc(targets * 20); xmalloc 173 xdiff-interface.c ptr->ptr = xmalloc(sz ? sz : 1); xmalloc 264 xdiff-interface.c regs = xecfg->find_func_priv = xmalloc(sizeof(struct ff_regs)); xmalloc 268 xdiff-interface.c regs->array = xmalloc(regs->nr * sizeof(struct ff_reg));