replace: plug a memory leak
commit372b050b6bd4bd3256e6fa21ab0fef47dd768d98
authorJunio C Hamano <gitster@pobox.com>
Tue, 18 Apr 2017 04:56:54 +0000 (17 21:56 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Apr 2017 04:56:54 +0000 (17 21:56 -0700)
treefa12cbf34a720297cd8227b5ce129c041a6db4bb
parent6a97da396470cb85e289a4810326fd7f50062b96
replace: plug a memory leak

Recent update to for_each_replace_name() to make it use a strbuf in
place of a fixed buffer forgot to release the memory held by the
strbuf before leaving the function.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/replace.c