Files
git/builtin
Jonathan Nieder 127f045222 revert: plug memory leak in "cherry-pick root commit" codepath
The empty tree passed as common ancestor to merge_trees() when
cherry-picking a parentless commit is allocated on the heap and never
freed.  Leaking such a small one-time allocation is not a very big
problem, but now that "git cherry-pick" can cherry-pick multiple
commits it can start to add up.

Avoid the leak by storing the fake tree exactly once in the BSS
section (i.e., use a static).  While at it, let's add a test to make
sure cherry-picking multiple parentless commits continues to work.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-08-16 10:51:34 -07:00
..
2010-03-10 15:32:02 -08:00
2010-03-13 21:31:42 -08:00
2010-05-21 04:02:14 -07:00
2010-05-21 04:02:15 -07:00
2010-05-21 04:02:16 -07:00
2010-03-28 17:42:58 -07:00
2010-04-09 22:43:18 -07:00
2010-05-21 04:02:16 -07:00
2010-05-08 22:36:14 -07:00
2010-03-21 16:23:44 -07:00
2010-03-21 16:23:44 -07:00
2010-03-10 15:32:34 -08:00
2010-05-08 22:34:47 -07:00
2010-03-28 21:52:28 -07:00
2010-04-09 22:43:18 -07:00
2010-04-19 16:39:24 -07:00
2010-03-31 15:14:27 -07:00
2010-03-15 00:58:24 -07:00
2010-05-21 04:02:20 -07:00
2010-03-10 15:25:18 -08:00