summaryrefslogtreecommitdiff
path: root/builtin/branch.c
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2012-09-04 17:30:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-09-04 20:34:46 (GMT)
commitd292bfaf356338b41e14e40ce4dbd6b9c8d600ec (patch)
treede4467f56e9d534169cd05b6a25e4a8e6ca60a73 /builtin/branch.c
parent5c44252e13db2324d7c79d2b498886a925055111 (diff)
downloadgit-d292bfaf356338b41e14e40ce4dbd6b9c8d600ec.zip
git-d292bfaf356338b41e14e40ce4dbd6b9c8d600ec.tar.gz
git-d292bfaf356338b41e14e40ce4dbd6b9c8d600ec.tar.bz2
Call git_pathdup() rather than xstrdup(git_path("..."))
In addition to updating the two xstrdup(git_path("...")) call sites with git_pathdup(), we also fix a memory leak by freeing the memory allocated to the ADD_EDIT.patch 'file' in the edit_patch() function. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/branch.c')
0 files changed, 0 insertions, 0 deletions