diff options
author | Jeff King <peff@peff.net> | 2014-01-01 22:03:30 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-01-02 10:21:40 -0800 |
commit | e1c1a324fc7061c8f170a113709724f1640addb3 (patch) | |
tree | a53813aaab6449201215bce82a8683b3aa0b0cf2 /t/t4109/patch2.patch | |
parent | Git 1.8.5 (diff) | |
download | tgif-e1c1a324fc7061c8f170a113709724f1640addb3.tar.xz |
Revert "prompt: clean up strbuf usage"
This reverts commit 31b49d9b653803e7c7fd18b21c8bdd86e3421668.
That commit taught do_askpass to hand ownership of our
buffer back to the caller rather than simply return a
pointer into our internal strbuf. What it failed to notice,
though, was that our internal strbuf is static, because we
are trying to emulate the getpass() interface.
By handing off ownership, we created a memory leak that
cannot be solved. Sometimes git_prompt returns a static
buffer from getpass() (or our smarter git_terminal_prompt
wrapper), and sometimes it returns an allocated string from
do_askpass.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4109/patch2.patch')
0 files changed, 0 insertions, 0 deletions