Re: [PATCH] convert_var_to_array: handle non-scalar source var
From:
Chet Ramey
Subject:
Re: [PATCH] convert_var_to_array: handle non-scalar source var
Date:
Thu, 4 Jun 2026 14:14:30 -0400
User-agent:
Mozilla Thunderbird
On 6/3/26 7:17 PM, Grisha Levit wrote:
convert_var_to_{array,assoc} can get called with a non-scalar VAR
argument, in which case the old variable's hash pointer is assigned to
element 0 of the new array, and its storage never gets freed properly.
Thanks for the report and patch.
Chet
--
``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/