From: Junio C Hamano Date: Mon, 23 Apr 2012 19:52:18 +0000 (-0700) Subject: Merge branch 'jh/apply-free-patch' X-Git-Tag: v1.7.11-rc0~126 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=58bbace89d3e94a20faae4df0d20d57574dff6e1;p=git.git Merge branch 'jh/apply-free-patch' 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 --- 58bbace89d3e94a20faae4df0d20d57574dff6e1