Hello,
Thanks for this again.
Mikhail Karpov, le mar. 08 sept. 2026 07:28:09 +0700, a ecrit:
> diff --git a/proc/mgt.c b/proc/mgt.c
> index 05af823..b3f7299 100644
> --- a/proc/mgt.c
> +++ b/proc/mgt.c
> @@ -274,7 +274,11 @@ S_proc_child (struct proc *parentp,
> childp->end_code = parentp->end_code;
> }
> if (! childp->exe && parentp->exe)
> - childp->exe = strdup (parentp->exe);
> + {
> + childp->exe = strdup (parentp->exe);
> + if (! childp->exe)
> + return errno;
> + }
Mmm, but we have already deallocated our parameter childt. Returning an
error here will deallocate it again, leading to missing reference. You
thus want to duplicate and check it before deallocating childt.
I have applied the rest, thanks!
Samuel