All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Delannoy <anthony.2lannoy@gmail.com>
To: git@vger.kernel.org
Cc: Anthony Delannoy <anthony.2lannoy@gmail.com>
Subject: [PATCH v2 0/1] pathspec: fix memleak
Date: Mon, 22 Aug 2022 23:15:06 +0200	[thread overview]
Message-ID: <20220822211507.8693-1-anthony.2lannoy@gmail.com> (raw)

Changes since v1:
- use directly clear_pathspec() function instead of multiple free()

Sending this patch to fix a memleak, created with copy_pathspec, found
thanks to the address sanitizer.

Thanks

Anthony Delannoy (1):
  pathspec: fix memleak

 preload-index.c | 6 ++++++
 1 file changed, 6 insertions(+)


base-commit: 795ea8776befc95ea2becd8020c7a284677b4161
--
2.35.1

             reply	other threads:[~2022-08-22 21:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-22 21:15 Anthony Delannoy [this message]
2022-08-22 21:15 ` [PATCH v2 1/1] pathspec: fix memleak Anthony Delannoy
2022-08-22 21:41   ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220822211507.8693-1-anthony.2lannoy@gmail.com \
    --to=anthony.2lannoy@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.