Skip to content

Fix small issues in alias subsection handling

Jonatan Holmgren git 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 3 repliesIn review
  2. v12 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3doc: fix list continuation in alias subsection exampleDocumentation/config/alias.adoc+4 -32 replies
2/3alias: treat empty subsection [alias ""] as plain [alias]alias.c t/t0014-alias.sh+18 -00 replies
3/3git, help: fix memory leaks in alias listinggit.c help.c+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] Fix small issues in alias subsection handling

v2: Add patch 3 to fix memory leaks in alias listing reported by
Jacob Keller. The leaks were introduced by the jh/alias-i18n series (specifically "help: use list_aliases() for alias listing"):
list_aliases() allocates util pointers but two callers cleared the list without freeing them.

Also fix a stray trailing whitespace in patch 1.

No changes in patch 2.

Jonatan Holmgren (3):
doc: fix list continuation in alias subsection example
alias: treat empty subsection [alias ""] as plain [alias] git, help: fix memory leaks in alias listing

 Documentation/config/alias.adoc |  7 ++++---
 alias.c                         |  4 ++++
 git.c                           |  2 +-
 help.c                          |  2 +-
 t/t0014-alias.sh                | 14 ++++++++++++++
 5 files changed, 24 insertions(+), 5 deletions(-)
Signature · 1 line
2.53.0