summaryrefslogtreecommitdiff
path: root/git-gui/lib/commit.tcl
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2024-09-24 18:09:54 -0400
committerJunio C Hamano <gitster@pobox.com>2024-09-25 10:24:57 -0700
commit3245a2ade5ee0ff3e5fad7bd96ad0a630c590e82 (patch)
tree7da781ec3f8ec68157f08cb855198b8ec47d872a /git-gui/lib/commit.tcl
parenta1528093babd4c10415ece172235deb287ca7139 (diff)
http-push: free xml_ctx.cdata after use
When we ask libexpat to parse XML data, we sometimes set xml_cdata as a CharacterDataHandler callback. This fills in an allocated string in the xml_ctx struct which we never free, causing a leak. I won't pretend to understand the purpose of the field, but it looks like it is used by other callbacks during the parse. At any rate, we never look at it again after XML_Parse() returns, so we should be OK to free() it then. This fixes several leaks triggered by t5540. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui/lib/commit.tcl')
0 files changed, 0 insertions, 0 deletions