bug#79780: Resource leak in change_file_context() in src/chcon.c (coreutils Latest)

Pádraig Brady <[email protected]> Sat, 8 Nov 2025 10:43:12 +0000
Newsgroups gmane.comp.gnu.core-utils.bugs
Message-ID <[email protected]>
On 08/11/2025 09:01, Ray steven wrote:
>   The compute_context_from_mask() function only frees the copied context created by
>   context_new (new_context), but does not free the original context passed in.
>   This may cause a memory leak.

Oh indeed.
I've pushed a fix for that now.

thanks!
Padraig