GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — mktree: plug per-tree leak in --batch mode · Joiejoie1/git@6272f3b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • builtin
    • mktree.c
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎builtin/mktree.c‎

Copy file name to clipboardExpand all lines: builtin/mktree.c
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,11 @@ int cmd_mktree(int ac,
200200
puts(oid_to_hex(&oid));
201201
fflush(stdout);
202202
}
203+
for (int i = 0; i < used; i++)
204+
free(entries[i]);
203205
used=0; /* reset tree entry buffer for re-use in batch mode */
204206
}
207+
free(entries);
205208
strbuf_release(&sb);
206209

207210
return 0;

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.