Skip to content

Commit

Permalink
Merge branch 'jh/apply-free-patch'
Browse files Browse the repository at this point in the history
Valgrind reports quite a lot of discarded memory inside apply.
Fix them, audit and document the buffer ownership rules.

By Junio C Hamano (8) and Jared Hance (1)
* jh/apply-free-patch:
  apply: document buffer ownership rules across functions
  apply: tighten constness of line buffer
  apply: drop unused macro
  apply: free unused fragments for submodule patch
  apply: free patch->result
  apply: release memory for fn_table
  apply: free patch->{def,old,new}_name fields
  apply: rename free_patch() to free_patch_list()
  apply: do not leak patches and fragments
  • Loading branch information
Junio C Hamano committed Apr 23, 2012
2 parents b619519 + 92737a2 commit 58bbace
Showing 1 changed file with 133 additions and 41 deletions.
Loading

0 comments on commit 58bbace

Please sign in to comment.