git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH 0/3] fix memory leak in git-am
@ 2017-04-27  3:25 Jeff King
  2017-04-27  3:25 ` [PATCH 1/3] am: fix commit buffer leak in get_commit_info() Jeff King
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jeff King @ 2017-04-27  3:25 UTC (permalink / raw)
  To: git

This was noticed by Coverity. The leak isn't new, but I think was
"re-found" by Coverity because some nearby code did an unrelated
s/sha1/oid/ change, throwing off its heuristics.

I also checked whether this was in Dscho's big pack of Coverity fixups
from earlier today, and it's not.

The first one is the actual fix. The second one is pure cleanup, but I
think worth doing. The final one is arguably just churn, and maybe
people even like the end result less. I'm OK to drop it.

  [1/3]: am: fix commit buffer leak in get_commit_info()
  [2/3]: am: simplify allocations in get_commit_info()
  [3/3]: am: shorten ident_split variable name in get_commit_info()

 builtin/am.c | 34 ++++++++++++++--------------------
 1 file changed, 14 insertions(+), 20 deletions(-)

-Peff

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-04-27  5:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-27  3:25 [PATCH 0/3] fix memory leak in git-am Jeff King
2017-04-27  3:25 ` [PATCH 1/3] am: fix commit buffer leak in get_commit_info() Jeff King
2017-04-27  3:27 ` [PATCH 2/3] am: simplify allocations " Jeff King
2017-04-27  3:28 ` [PATCH 3/3] am: shorten ident_split variable name " Jeff King
2017-04-27  5:41 ` [PATCH 0/3] fix memory leak in git-am Junio C Hamano

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).