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-02-22 14:29:41 -08:00
2010-05-08 22:37:41 -07:00
2010-02-22 14:29:41 -08:00
2010-02-22 14:29:41 -08:00
2010-03-13 21:31:42 -08:00
2010-03-10 15:25:18 -08:00
2010-02-22 14:29:41 -08:00
2010-02-22 14:29:41 -08:00
2010-02-22 14:29:41 -08:00
2010-02-22 14:29:41 -08:00
2010-02-22 14:29:41 -08:00
2010-05-21 04:02:14 -07:00
2010-02-22 14:29:41 -08:00
2010-05-21 04:02:15 -07:00
2010-04-01 23:53:54 -07:00
2010-05-21 04:02:16 -07:00
2010-03-28 09:48:25 -07:00
2010-02-22 14:29:41 -08:00
2010-05-21 04:02:17 -07:00
2010-02-22 14:29:41 -08:00
2010-02-22 14:29:41 -08:00
2010-03-24 16:25:39 -07:00
2010-02-22 14:29:41 -08:00
2010-03-28 17:42:58 -07:00
2010-02-22 14:29:41 -08:00
2010-04-09 22:43:18 -07:00
2010-03-24 19:45:31 -07:00
2010-05-18 21:49:04 -07:00
2010-02-22 14:29:41 -08:00
2010-02-22 14:29:41 -08:00
2010-05-21 04:02:16 -07:00
2010-03-10 15:25:18 -08:00
2010-02-22 14:29:41 -08:00
2010-05-21 04:02:19 -07:00
2010-05-10 11:25:37 -07:00
2010-05-08 22:36:14 -07:00
2010-03-21 16:23:44 -07:00
2010-04-08 23:10:43 -07:00
2010-03-21 16:23:44 -07:00
2010-04-04 10:17:55 -07:00
2010-03-10 15:32:34 -08:00
2010-02-22 14:29:41 -08:00
2010-03-20 20:36:11 -07:00
2010-02-22 14:29:41 -08:00
2010-02-22 14:29:41 -08:00
2010-02-22 14:29:41 -08:00
2010-02-22 14:29:41 -08:00
2010-05-08 22:34:47 -07:00
2010-02-22 14:29:41 -08:00
2010-02-22 14:29:41 -08:00
2010-02-22 14:29:41 -08:00
2010-02-22 14:29:41 -08:00
2010-03-28 21:52:28 -07:00
2010-05-21 04:02:16 -07:00
2010-02-22 14:29:41 -08:00
2010-02-22 14:29:41 -08:00
2010-04-19 13:01:49 -07:00
2010-02-22 14:29:41 -08:00
2010-03-10 15:25:18 -08:00
2010-04-09 22:43:18 -07:00
2010-02-22 14:29:41 -08:00
2010-05-21 04:02:19 -07:00
2010-05-21 04:02:18 -07:00
2010-04-19 16:39:24 -07:00
2010-02-22 14:29:41 -08:00
2010-02-22 14:29:41 -08:00
2010-03-31 15:14:27 -07:00
2010-04-06 14:50:46 -07:00
2010-03-10 15:25:18 -08:00
2011-08-16 10:51:34 -07:00
2010-02-22 14:29:41 -08:00
2010-03-15 00:58:24 -07:00
2010-05-21 04:02:20 -07:00
2010-05-25 09:48:49 -07:00
2010-02-22 14:29:41 -08:00
2010-02-22 14:29:41 -08:00
2010-02-22 14:29:41 -08:00
2010-04-17 12:40:19 -07:00
2010-02-22 14:29:41 -08:00
2010-02-22 14:29:41 -08:00
2010-02-22 14:29:41 -08:00
2010-02-22 14:29:41 -08:00
2010-02-22 14:29:41 -08:00
2010-02-22 14:29:41 -08:00
2010-02-22 14:29:41 -08:00
2010-03-10 15:25:18 -08:00
2010-02-22 14:29:41 -08:00
2010-02-22 14:29:41 -08:00
2010-02-22 14:29:41 -08:00