Call mkpathdup() rather than xstrdup(mkpath(...))
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Tue, 4 Sep 2012 17:31:14 +0000 (18:31 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 4 Sep 2012 20:34:46 +0000 (13:34 -0700)
commit4e2d094dde4f078245d057dd6111ab9d013ae6d0
tree208226504d771a78580d6f8a78277134c3b3ecc1
parentd292bfaf356338b41e14e40ce4dbd6b9c8d600ec
Call mkpathdup() rather than xstrdup(mkpath(...))

In addition to updating the xstrdup(mkpath(...)) call sites with
mkpathdup(), we also fix a memory leak (in merge_3way()) caused by
neglecting to free the memory allocated to the 'base_name' variable.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/branch.c
builtin/clone.c
builtin/prune.c
merge-recursive.c