Re: [hackers] [sbase][PATCH 3/4] ed: Fix double-free in join

From: Roberto E. Vargas Caballero <k0ga_AT_shike2.net>
Date: Wed, 26 Nov 2025 13:14:22 +0100

Hi,

On Sun, Nov 23, 2025 at 11:17:28AM +0100, Страхиња Радић wrote:
> Maybe instead of removing that line, do something like:
>
> free(s.str);
> s.str = NULL;
>
> so the next call to free(3) will just silently return?

I personally prefer just removing the line, because it avoids
handling with internal details of String.

Regards,
Received on Wed Nov 26 2025 - 13:14:22 CET

This archive was generated by hypermail 2.3.0 : Wed Nov 26 2025 - 13:24:36 CET