From: Herbert Xu <herbert@gondor.apana.org.au>
To: Harald van Dijk <harald@gigawatt.nl>
Cc: DASH shell mailing list <dash@vger.kernel.org>
Subject: Re: [PATCH] Simplify alias storage.
Date: Sat, 6 Apr 2024 15:19:21 +0800 [thread overview]
Message-ID: <ZhD3eVw1cXMZxZg6@gondor.apana.org.au> (raw)
In-Reply-To: <c3903caf-06a7-e321-4fa9-5abe0a0f2ae9@gigawatt.nl>
On Wed, Jan 11, 2023 at 06:23:41PM +0000, Harald van Dijk wrote:
>
> if (ap) {
> if (!(ap->flag & ALIASINUSE)) {
> - ckfree(ap->val);
> + ckfree(ap->name);
> }
I think this breaks ALIASINUSE. When an alias is marked as INUSE,
it will be freed by input.c (popstring). However, your patch doesn't
touch input.c at all.
Thanks,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
next prev parent reply other threads:[~2024-04-06 7:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-11 18:23 [PATCH] Simplify alias storage Harald van Dijk
2023-01-11 18:59 ` [PATCH][resend] " Harald van Dijk
2024-04-06 7:19 ` Herbert Xu [this message]
2024-04-25 20:46 ` [PATCH] " Harald van Dijk
2024-04-26 2:49 ` Herbert Xu
2024-04-28 0:43 ` [PATCH v2] " Harald van Dijk
2024-05-04 5:20 ` Herbert Xu
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=ZhD3eVw1cXMZxZg6@gondor.apana.org.au \
--to=herbert@gondor.apana.org.au \
--cc=dash@vger.kernel.org \
--cc=harald@gigawatt.nl \
/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.