[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] cond expr: cleanup on errors
From: |
Chet Ramey |
Subject: |
Re: [PATCH] cond expr: cleanup on errors |
Date: |
Mon, 3 Jun 2024 15:53:28 -0400 |
User-agent: |
Mozilla Thunderbird |
On 5/31/24 5:07 PM, Grisha Levit wrote:
Two minor leak fixes for conditional command error conditions:
If a WORD token is read when COND_AND, COND_OR, COND_END, or a binary
operator are expected, the allocated WORD_DESC is leaked.
If a conditional command has a syntax error, the allocated COMMAND is > leaked.
Thanks for the report. These are interactive errors only, since a syntax
error in a compound command causes the shell to exit.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature
- Re: [PATCH] cond expr: cleanup on errors,
Chet Ramey <=