Fix botched "leak fix"
authorJunio C Hamano <junkio@cox.net>
Wed, 21 Feb 2007 08:58:18 +0000 (00:58 -0800)
committerJunio C Hamano <junkio@cox.net>
Wed, 21 Feb 2007 09:14:34 +0000 (01:14 -0800)
commit6c912f5b04e3216a5487e03235a8454b754a464e
tree57b60fea8e5052936cb7a92a0c51b5126dbd68d8
parentc24e9757e9f608ad3985ee9093d28ca5cd37f052
Fix botched "leak fix"

When (new_name == old_name), the previous one prefixed old_name
alone, leaving new_name untouched, and worse yet, left it
dangling pointing at an already freed memory location.

Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-apply.c